private void RegisterDebuggerCommand(RoutedUICommand command, DebuggerCommandEnum cmd)
 {
     App.Current.MainWindow.CommandBindings.Add(new CommandBinding(command, (s, e) =>
     {
         if (_debug)
         {
             SendCommand(new CommandModel(GetCurrentViewPort(), cmd.ToString()));
         }
     }));
 }
Exemplo n.º 2
0
 public CommandModel(CommandType commandType, DebuggerCommandEnum cmd, string arg = null)
 {
     ResultType = commandType;
     Cmd        = cmd;
     Arg        = arg;
 }