Exemplo n.º 1
0
 internal static string GetHelp(cmd.COMMAND command)
 {
     if (list != null && list.ContainsKey(command))
     {
         var item = list[command];
         return(item.help);
     }
     return(null);
 }
Exemplo n.º 2
0
        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);
        }