예제 #1
0
 private void RTC_TF_Form_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (e.CloseReason != CloseReason.FormOwnerClosing)
     {
         e.Cancel = true;
         RTC_TimeFlow.Stop();
     }
 }
예제 #2
0
        public static void MAINFORM_CLOSING()
        {
            RTC_Core.lastOpenRom = null;

            RTC_Core.AutoCorrupt = false;
            RTC_Core.coreForm.cbUseTimeStack.Checked = false;
            RTC_TimeFlow.Stop();

            RTC_Restore.SaveRestore();
            RTC_RPC.SendToKillSwitch("CLOSE");

            ForceCloseTimer          = new Timer();
            ForceCloseTimer.Interval = 5000;
            ForceCloseTimer.Tick    += new EventHandler(ForceCloseTimer_Tick);
            ForceCloseTimer.Start();
        }