private void frmMD_Main_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (ClosingFlag == false) { frmMainPopup.Close(); } }
/// <summary> /// Requests to begin closing the plugin. /// </summary> public void BeginClose() { MainPopup?.Close(); SaveSettings(); using (MainWindow Popup = MainPopup) { MainPopup = null; } using (Parser Chat = CurrentChat) { CurrentChat = null; } }