public bool CanRegister() { Hotkey keyObject = Common.BindHotKey(this); bool canBeRegistered = keyObject.Register(new Label()); keyObject.Unregister(); return(canBeRegistered); }
private Hotkey BindHotKey(KeyCommand keyCommand) { Hotkey hotKey = Common.BindHotKey(keyCommand); hotKey.Register(new Label()); hotKey.Pressed += new HandledEventHandler(HandleHotKeyPress); return(hotKey); }