Пример #1
0
        public static void ShowWindow()
        {
            if (_instance != null)
            {
                DebugWindowManager.BringToFront(_instance);
            }
            frmCheatList frm = new frmCheatList();

            _instance   = frm;
            frm.Closed += (s, e) => { _instance = null; };
            frm.Show(null, frmMain.Instance);
        }
Пример #2
0
 private void mnuCheats_Click(object sender, EventArgs e)
 {
     if (_cheatListWindow == null)
     {
         _cheatListWindow = new frmCheatList();
         _cheatListWindow.Show(sender, this);
         _cheatListWindow.FormClosed += (s, evt) => {
             CheatInfo.ApplyCheats();
             _cheatListWindow = null;
         };
     }
     else
     {
         _cheatListWindow.Focus();
     }
 }