From 5cfee0974ebdbcb978721e580163035b22509fa7 Mon Sep 17 00:00:00 2001 From: Camilo Alvarez Date: Tue, 1 Jan 2019 19:30:20 -0500 Subject: [PATCH] Cleanup unused code in CloseOtherTabsToTheRight Cleanup unused code in CloseOtherTabsToTheRight --- mRemoteV1/UI/Window/ConnectionWindow.cs | 42 +------------------------ 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/mRemoteV1/UI/Window/ConnectionWindow.cs b/mRemoteV1/UI/Window/ConnectionWindow.cs index f1e823acd..c3f779253 100644 --- a/mRemoteV1/UI/Window/ConnectionWindow.cs +++ b/mRemoteV1/UI/Window/ConnectionWindow.cs @@ -688,47 +688,7 @@ namespace mRemoteNG.UI.Window catch (Exception ex) { Runtime.MessageCollector.AddExceptionMessage("CloseTabMenu (UI.Window.ConnectionWindow) failed", ex); - } - - /* try - { - if (Settings.Default.ConfirmCloseConnection == (int)ConfirmCloseEnum.Multiple) - { - var result = CTaskDialog.MessageBox(this, GeneralAppInfo.ProductName, string.Format(Language.strConfirmCloseConnectionRightInstruction, TabController.SelectedTab.Title), "", "", "", Language.strCheckboxDoNotShowThisMessageAgain, ETaskDialogButtons.YesNo, ESysIcons.Question, ESysIcons.Question); - if (CTaskDialog.VerificationChecked) - { - Settings.Default.ConfirmCloseConnection--; - } - if (result == DialogResult.No) - { - return; - } - } - foreach (TabPage tab in TabController.TabPages) - { - if (TabController.TabPages.IndexOf(tab) > TabController.TabPages.IndexOf(TabController.SelectedTab)) - { - if (Settings.Default.ConfirmCloseConnection == (int)ConfirmCloseEnum.All) - { - var result = CTaskDialog.MessageBox(this, GeneralAppInfo.ProductName, string.Format(Language.strConfirmCloseConnectionMainInstruction, tab.Title), "", "", "", Language.strCheckboxDoNotShowThisMessageAgain, ETaskDialogButtons.YesNo, ESysIcons.Question, ESysIcons.Question); - if (CTaskDialog.VerificationChecked) - { - Settings.Default.ConfirmCloseConnection--; - } - if (result == DialogResult.No) - { - continue; - } - } - var interfaceControl = tab.Tag as InterfaceControl; - interfaceControl?.Protocol.Close(); - } - } - } - catch (Exception ex) - { - Runtime.MessageCollector.AddExceptionMessage("CloseTabMenu (UI.Window.ConnectionWindow) failed", ex); - }*/ + } } private void DuplicateTab()