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