Example #1
0
 public static void FireThisCommand(ModuleCommand command)
 {
     if (command.CommandName == "Start Button Command")
     {
         InstalledTransientModules[0].HandleCommand(command);
     }
 }
Example #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);
        }