Ejemplo n.º 1
0
        /// <summary>
        /// Checks a switch name against the PossibleSwitches entries
        /// </summary>
        /// <param name="checkSwitch">Name of a passed switch</param>
        /// <returns>Indicates whether or not checkSwitch was found in PossibleSwitches</returns>
        private bool SwitchOk(string checkSwitch)
        {
            PossibleSwitches ps = new PossibleSwitches();

            if (ps.ContainsKey(checkSwitch))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks a switch name against the PossibleSwitches entries
 /// </summary>
 /// <param name="checkSwitch">Name of a passed switch</param>
 /// <returns>Indicates whether or not checkSwitch was found in PossibleSwitches</returns>
 private bool SwitchOk(string checkSwitch)
 {
     PossibleSwitches ps = new PossibleSwitches();
     if (ps.ContainsKey(checkSwitch))
         return true;
     else
         return false;
 }