示例#1
0
        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);
        }
示例#2
0
 static CommandCenter()
 {
     StateChanged = new StaticCommand("StateChanged");
     GraphSearchChanged = new StaticCommand("GraphSearchChanged");
     ReadingChanged = new StaticCommand("ReadingChanged");
 }
示例#3
0
 internal ExecutedEventArgs(StaticCommand command, object parameter)
 {
     Command = command;
     Parameter = parameter;
 }
示例#4
0
 internal CanExecuteEventArgs(StaticCommand command, object parameter)
 {
     Command   = command;
     Parameter = parameter;
 }
示例#5
0
 static CommandCenter()
 {
     StateChanged       = new StaticCommand("StateChanged");
     GraphSearchChanged = new StaticCommand("GraphSearchChanged");
     ReadingChanged     = new StaticCommand("ReadingChanged");
 }