Пример #1
0
 public MseMaker(MSEConfig mcfg)
 {
     SetConfig(mcfg);
 }
Пример #2
0
 public void SetConfig(MSEConfig mcfg)
 {
     cfg = mcfg;
 }
Пример #3
0
 //窗体第一次加载
 void DataEditFormLoad(object sender, EventArgs e)
 {
     InitListRows();//调整卡片列表的函数
     HideMenu();//是否需要隐藏菜单
     SetTitle();//设置标题
     //加载
     msecfg = new MSEConfig(datapath);
     tasker = new TaskHelper(datapath, bgWorker1, msecfg);
     //设置空白卡片
     oldCard = new Card(0);
     SetCard(oldCard);
     //删除资源
     menuitem_operacardsfile.Checked = MyConfig.readBoolean(MyConfig.TAG_DELETE_WITH);
     //用CodeEditor打开脚本
     menuitem_openfileinthis.Checked = MyConfig.readBoolean(MyConfig.TAG_OPEN_IN_THIS);
     //自动检查更新
     menuitem_autocheckupdate.Checked = MyConfig.readBoolean(MyConfig.TAG_AUTO_CHECK_UPDATE);
     if (nowCdbFile != null && File.Exists(nowCdbFile))
         Open(nowCdbFile);
     //获取MSE配菜单
     AddMenuItemFormMSE();
     //
     GetLanguageItem();
     //   CheckUpdate(false);//检查更新
 }
Пример #4
0
 public MseMaker(MSEConfig mcfg)
 {
     SetConfig(mcfg);
 }
Пример #5
0
 public void SetConfig(MSEConfig mcfg)
 {
     cfg = mcfg;
 }
Пример #6
0
 public void SetConfig(MSEConfig mcfg)
 {
     this.cfg = mcfg;
 }
Пример #7
0
 public TaskHelper(string datapath, BackgroundWorker worker, MSEConfig mcfg)
 {
     this.worker = worker;
     mseHelper = new MseMaker(mcfg);
     imgSet = new ImageSet();
 }