init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using CommonLib;
|
||||
using Ls;
|
||||
|
||||
namespace EmployeeManager
|
||||
{
|
||||
/// <summary>
|
||||
/// c#库被调用统一接口类
|
||||
/// </summary>
|
||||
public sealed class DllBaseClass
|
||||
{
|
||||
public DllBaseClass()
|
||||
{
|
||||
}
|
||||
|
||||
//以数组传入参数,容易扩展
|
||||
public DllBaseClass(string[] args)
|
||||
{
|
||||
|
||||
FrmMain _FrmMain = new FrmMain();
|
||||
//------------------自定义的参数解析过程----------------
|
||||
try
|
||||
{
|
||||
if (args.Length == 0)
|
||||
_FrmMain.Text = "没有参数";
|
||||
else
|
||||
{
|
||||
Ls.sysstr.str1 = (string)args[0];
|
||||
Ls.sysstr.str2 = (string)args[1];
|
||||
Ls.sysstr.str3 = (string)args[2];
|
||||
Ls.sysstr.str4 = (string)args[3];
|
||||
Ls.sysstr.str5 = (string)args[4];
|
||||
Ls.sysstr.str6 = (string)args[5];
|
||||
Ls.sysstr.str7 = (string)args[6];
|
||||
Ls.sysstr.str8 = (string)args[7];
|
||||
_FrmMain.Text = Ls.sysstr.str1;
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PubUtil.WriteLog("ModuleInit错误:" + ex.Message);
|
||||
}
|
||||
//------------------解析完毕,准备调用有关窗体----------------
|
||||
|
||||
_FrmMain.ShowDialog();
|
||||
_FrmMain.Close();
|
||||
_FrmMain.Dispose();
|
||||
_FrmMain = null;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user