private void ControllerOnShortcutRegister(bool fromView, PluginShortcut shortcut, bool isRegister, bool success) { switch (shortcut) { case PluginShortcut.HideOverlay: UpdateHotkeyControlColor(buttonShortcutHide, isRegister, success); break; } }
private void ControllerOnShortcutFired(bool fromView, PluginShortcut shortcut) { switch (shortcut) { case PluginShortcut.HideOverlay: checkBoxShowOverlay.Checked = !checkBoxShowOverlay.Checked; break; } }
private void ControllerOnShortcutChanged(bool fromView, PluginShortcut shortcut, Keys key) { var str = ShortkeyUtils.KeyToString(key); switch (shortcut) { case PluginShortcut.HideOverlay: buttonShortcutHide.Text = str; break; } }
private void ControllerOnShortcutChanged(bool fromView, PluginShortcut shortcut, Keys key) { if (!fromView) { return; } var ks = ShortkeyUtils.KeyToString(key); switch (shortcut) { case PluginShortcut.HideOverlay: ShortcutHide = ks; break; } }