public CmdEditor(MetroWindow parent, MetroDialogSettings mySettings, QuickCommand command) :
     base(parent, mySettings)
 {
     InitializeComponent();
     this.parent = parent;
     if (command == null)
     {
         QCommand = new QuickCommand(true);
         Title    = "Create Quick Command";
     }
     else
     {
         QCommand = QuickCommand.Copy(command);
         Title    = "Edit Quick Command";
     }
     DataContext = this;
     DefaultCMDDropDownMenuItemCommand = new SimpleCommand(o => true, x => {
         DefaultQuickCommandSelected(x);
     });
 }