Esempio n. 1
0
 public bool KeyEvent(KeyCode keyCode, ModifierKeyState state)
 {
     if (state.Ctrl && keyCode == KeyCode.Z)
     {
         InvertApplication.Execute(new UndoCommand());
         return(true);
     }
     if (state.Ctrl && keyCode == KeyCode.Y)
     {
         InvertApplication.Execute(new RedoCommand());
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 public MouseEvent()
 {
     ModifierKeyStates = new ModifierKeyState();
 }
Esempio n. 3
0
 public MouseEvent(ModifierKeyState modifierKeyStates, IInputHandler defaultHandler)
 {
     ModifierKeyStates = modifierKeyStates;
     DefaultHandler    = defaultHandler;
 }
Esempio n. 4
0
 public MouseEvent(ModifierKeyState modifierKeyStates)
 {
     ModifierKeyStates = modifierKeyStates;
 }