Пример #1
0
        /// <summary>
        /// </summary>
        /// <returns> </returns>
        public Option[] GetOptions()
        {
            ElementList nl = SelectElements(typeof (Option));
            int i = 0;
            var result = new Option[nl.Count];
            foreach (Option o in nl)
            {
                result[i] = o;
                i++;
            }

            return result;
        }
Пример #2
0
 /// <summary>
 /// </summary>
 /// <param name="opt"> </param>
 public void AddOption(Option opt)
 {
     AddChild(opt);
 }
Пример #3
0
 /// <summary>
 /// </summary>
 /// <param name="label"> </param>
 /// <param name="val"> </param>
 /// <returns> </returns>
 public Option AddOption(string label, string val)
 {
     var opt = new Option(label, val);
     AddChild(opt);
     return opt;
 }
Пример #4
0
 /// <summary>
 /// </summary>
 /// <returns> </returns>
 public Option AddOption()
 {
     var opt = new Option();
     AddChild(opt);
     return opt;
 }
Пример #5
0
 /// <summary>
 /// </summary>
 /// <param name="opt"> </param>
 public void AddOption(Option opt)
 {
     AddChild(opt);
 }