internal static string GetHelp(cmd.COMMAND command) { if (list != null && list.ContainsKey(command)) { var item = list[command]; return(item.help); } return(null); }
internal static bool IsValid(RUNMODE mode, cmd.COMMAND command) { if (list != null && list.ContainsKey(command)) { var item = list[command]; switch (mode) { case RUNMODE.NORMAL: return(item.bNormal); case RUNMODE.RunLimit: return(item.bRunLimit); } } return(true); }