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()));
         }
     }));
 }
예제 #2
0
 public CommandModel(CommandType commandType, DebuggerCommandEnum cmd, string arg = null)
 {
     ResultType = commandType;
     Cmd        = cmd;
     Arg        = arg;
 }