Example #1
0
 public void ExecuteCommand(IDiiagramrCommand command, object parameter)
 {
     if (command.CanExecute(_shell))
     {
         command.Execute(_shell, parameter);
     }
 }
Example #2
0
        private string GenerateCommandPath(IDiiagramrCommand command)
        {
            if (command.Parent == null)
            {
                return(command.Name);
            }

            return($"{command.Parent}:{command.Name}");
        }
Example #3
0
 public void ExecuteCommand(IDiiagramrCommand command)
 {
     ExecuteCommand(command, null);
 }