示例#1
0
 public static void FireThisCommand(ModuleCommand command)
 {
     if (command.CommandName == "Start Button Command")
     {
         InstalledTransientModules[0].HandleCommand(command);
     }
 }
示例#2
0
        public static ModuleCommand GetCommandByName(string commandName, IEnumerable <ModuleCommand> source)
        {
            ModuleCommand c = null;

            foreach (var m in source)
            {
                if (m.CommandName == commandName)
                {
                    c = m;
                }
            }
            return(c);
        }