Esempio n. 1
0
 private void ToolStrip_notepad_Click(object sender, EventArgs e)
 {
     if (CCFile.SelectOpenFile(out SET.NPPpath, "请选择lua编辑器(notepad++.exe)", "exe", ""))
     {
         if (File.Exists(SET.NPPpath))
         {
             SET.SaveSet(setfile);
             ToolStrip_notepad.ToolTipText = SET.NPPpath;
         }
     }
 }
Esempio n. 2
0
        private void ToolStrip_gamepath_Click(object sender, EventArgs e)
        {
            string str = "";

            if (CCFile.SelectOpenFile(out str, "请选择游戏文件(ygopro_vs.exe)", "exe", ""))
            {
                if (File.Exists(str))
                {
                    SET.GameName = CCFile.GetName(str);
                    SET.GamePath = CCFile.GetPath(str);
                    SET.SaveSet(setfile);
                    ToolStrip_gamepath.ToolTipText = SET.GamePath;
                    ToolStrip_game.ToolTipText     = SET.GameName;
                }
            }
        }
Esempio n. 3
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     SET.SaveSet(setfile);
     SET.Savesetname(path + @"data\setname.txt");
     SET.SaveCDB(path + @"data\lastcdb.conf");
 }