Example #1
0
		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);
        }
Example #3
0
        /// <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);
        }
Example #4
0
 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 );
 }
Example #5
0
 /// <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);
 }