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