示例#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();
 }