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