void OnHotKeySelected(object sender, HotKeyEventArgs e)
        {
            var hotKey = _model[e.KeyCombination];

            var description = new StringBuilder();
            foreach (var action in hotKey.Actions)
                description.AppendLine(action.Description);

            _view.SetHotKeyDescription(description.ToString());
        }
 public static void SafeRaise(this HotKeyEventHandler handler, object sender, HotKeyEventArgs e)
 {
     if (handler != null)
         handler(sender, e);
 }
Exemplo n.º 3
0
 void OnUnregisterHotKey(object sender, HotKeyEventArgs e)
 {
     _dispatcher.RemoveHotKey(e.KeyCombination);
 }
Exemplo n.º 4
0
 void OnRegisterHotKey(object sender, HotKeyEventArgs e)
 {
     _dispatcher.AddHotKey(e.KeyCombination, e.Actions);
 }
 void OnUnregisterHotKey(object sender, HotKeyEventArgs e)
 {
     _model.RemoveHotKey(e.KeyCombination);
 }
 void OnRegisterHotKey(object sender, HotKeyEventArgs e)
 {
     _model.AddHotKey(e.KeyCombination, e.Actions);
     _view.SetRegisteredKeyCombinationsList(_model.RegisteredKeyCombinations);
 }