From df8613f6be7bad174be92fa12e92ebf50b288832 Mon Sep 17 00:00:00 2001 From: Sean Kaim Date: Thu, 3 Jan 2019 21:46:33 -0500 Subject: [PATCH] minor refactoring --- mRemoteV1/UI/Window/ConnectionWindow.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/mRemoteV1/UI/Window/ConnectionWindow.cs b/mRemoteV1/UI/Window/ConnectionWindow.cs index af18b7291..15edc81d5 100644 --- a/mRemoteV1/UI/Window/ConnectionWindow.cs +++ b/mRemoteV1/UI/Window/ConnectionWindow.cs @@ -56,7 +56,6 @@ namespace mRemoteNG.UI.Window private void SetEventHandlers() { SetFormEventHandlers(); - SetTabControllerEventHandlers(); SetContextMenuEventHandlers(); } @@ -67,14 +66,12 @@ namespace mRemoteNG.UI.Window FormClosing += Connection_FormClosing; } - private void SetTabControllerEventHandlers() - { - //Menu handle - cmenTab.Opening += ShowHideMenuButtons; - } - private void SetContextMenuEventHandlers() { + // event handler to adjust the items within the context menu + cmenTab.Opening += ShowHideMenuButtons; + + // event handlers for all context menu items... cmenTabFullscreen.Click += (sender, args) => ToggleFullscreen(); cmenTabSmartSize.Click += (sender, args) => ToggleSmartSize(); cmenTabViewOnly.Click += (sender, args) => ToggleViewOnly();