public void ExecuteCommand(IDiiagramrCommand command, object parameter) { if (command.CanExecute(_shell)) { command.Execute(_shell, parameter); } }
private string GenerateCommandPath(IDiiagramrCommand command) { if (command.Parent == null) { return(command.Name); } return($"{command.Parent}:{command.Name}"); }
public void ExecuteCommand(IDiiagramrCommand command) { ExecuteCommand(command, null); }