private void RTC_TF_Form_FormClosing(object sender, FormClosingEventArgs e) { if (e.CloseReason != CloseReason.FormOwnerClosing) { e.Cancel = true; RTC_TimeFlow.Stop(); } }
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(); }