public static StaticCommand FindCommand(string commandName) { if (string.IsNullOrEmpty(commandName)) { return(null); } StaticCommand cmd = null; if (CommandCache.TryGetValue(commandName, out cmd)) { return(cmd); } return(null); }
static CommandCenter() { StateChanged = new StaticCommand("StateChanged"); GraphSearchChanged = new StaticCommand("GraphSearchChanged"); ReadingChanged = new StaticCommand("ReadingChanged"); }
internal ExecutedEventArgs(StaticCommand command, object parameter) { Command = command; Parameter = parameter; }
internal CanExecuteEventArgs(StaticCommand command, object parameter) { Command = command; Parameter = parameter; }