From 6b15012ff998b32e1b01d66315534eea9828f66c Mon Sep 17 00:00:00 2001 From: Anton Kasyanov Date: Sat, 18 Jun 2016 21:58:24 +0300 Subject: [PATCH] Removed obsolete (and commented out) code --- .../UI/Implementation/ThumbnailView.cs | 48 ++----------------- 1 file changed, 3 insertions(+), 45 deletions(-) diff --git a/Eve-O-Preview/UI/Implementation/ThumbnailView.cs b/Eve-O-Preview/UI/Implementation/ThumbnailView.cs index f40048a..a8d0c0d 100644 --- a/Eve-O-Preview/UI/Implementation/ThumbnailView.cs +++ b/Eve-O-Preview/UI/Implementation/ThumbnailView.cs @@ -363,12 +363,12 @@ namespace EveOPreview.UI // // do smth cool? //} - if (e.Button == MouseButtons.Middle) - { + //if (e.Button == MouseButtons.Middle) + //{ //// Trigger full thumbnail refresh //this.UnregisterThumbnail(); //this.Refresh(); - } + //} } private void HotkeyPressed_Handler(object sender, HandledEventArgs e) @@ -405,47 +405,5 @@ namespace EveOPreview.UI { } } - - //private Hotkey _hotkey; // This field stores the hotkey reference - //public void RegisterShortcut(string shortcut) - //{ - //if (String.IsNullOrEmpty(shortcut)) - //{ - // return; - //} - - //KeysConverter converter = new KeysConverter(); - //object keysObject = converter.ConvertFrom(shortcut); - //if (keysObject == null) - //{ - // return; - //} - - //Keys key = (Keys)keysObject; - - //Hotkey hotkey = new Hotkey(); - - //if ((key & Keys.Shift) == Keys.Shift) - //{ - // hotkey.Shift = true; - //} - - //if ((key & Keys.Alt) == Keys.Alt) - //{ - // hotkey.Alt = true; - //} - - //if ((key & Keys.Control) == Keys.Control) - //{ - // hotkey.Control = true; - //} - - //key = key & ~Keys.Shift & ~Keys.Alt & ~Keys.Control; - //hotkey.KeyCode = key; - //hotkey.Pressed += Hotkey_Pressed; - //hotkey.Register(this); - - //this._hotkey = hotkey; - //} } } \ No newline at end of file