使用IOC获取定义的数据服务
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using HslCommunication;
|
||||
using JY.DAL;
|
||||
using JY.Utility;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
@@ -33,6 +34,9 @@ namespace JY.Inspection
|
||||
IniFileHelper.CreateIniFile(Application.StartupPath + "\\Config\\", "Configure.ini");
|
||||
string mutexName = Assembly.GetEntryAssembly().FullName;
|
||||
string title = IniFileHelper.ReadIniData("SYSTEM_CONFIGURE", "Project_Name");
|
||||
|
||||
IocConfig.Initialize();
|
||||
|
||||
mFrmMain = new HomeForm();
|
||||
bool isFirst;
|
||||
using (new Mutex(false, mutexName, out isFirst))
|
||||
|
||||
Reference in New Issue
Block a user