public HotkeySelectionControl(HotkeySetting setting, ZAppType host) { InitializeComponent(); Setting = setting; switch (host) { case ZAppType.ZScreen: lblHotkeyDescription.Text = ((ZScreenHotkey)Setting.Tag).GetDescription(); break; case ZAppType.JBird: lblHotkeyDescription.Text = ((JBirdHotkey)Setting.Tag).GetDescription(); break; default: lblHotkeyDescription.Text = ((ZUploaderHotkey)Setting.Tag).GetDescription(); break; } btnSetHotkey.Text = new KeyInfo(Setting.Hotkey).ToString(); UpdateHotkeyStatus(); }
public HotkeyManager(HotkeyForm hotkeyForm, ZAppType host) { this.hotkeyForm = hotkeyForm; this.Host = host; }