public void AddSwitch(string[] names, string description) { if (m_switches == null) m_switches = new System.Collections.ArrayList(); SwitchRecord rec = new SwitchRecord(names[0], description); for (int s=1; s < names.Length; s++) rec.AddAlias(names[s]); m_switches.Add(rec); }
public void AddSwitch(string[] names, bool required, string description) { if (m_switches == null) { m_switches = new ArrayList(); } SwitchRecord rec = new SwitchRecord(names[0], required, description); for (int s = 1; s < names.Length; s++) { rec.AddAlias(names[s]); } m_switches.Add(rec); }
/// <summary> /// /// </summary> /// <param name="names"></param> /// <param name="description"></param> public void AddSwitch(string[] names, string description) { if (_switches == null) { _switches = new List <SwitchRecord>(); } SwitchRecord rec = new SwitchRecord(names[0], description); for (int s = 1; s < names.Length; s++) { rec.AddAlias(names[s]); } _switches.Add(rec); }
public void AddSwitch( string[] names, string description ) { if ( m_switches == null ) m_switches = new System.Collections.ArrayList(); SwitchRecord rec = new SwitchRecord( names[0], description ); for ( int s=1; s<names.Length; s++ ) rec.AddAlias( names[s] ); m_switches.Add( rec ); }
/// <summary> /// /// </summary> /// <param name="names"></param> /// <param name="description"></param> public void AddSwitch(string[] names, string description) { if (_switches == null) _switches = new List<SwitchRecord>(); SwitchRecord rec = new SwitchRecord(names[0], description); for (int s = 1; s < names.Length; s++) rec.AddAlias(names[s]); _switches.Add(rec); }