예제 #1
0
 public Option[] GetOptions()
 {
     ElementList nl = SelectElements(typeof(Option));
     int i = 0;
     Option[] result = new Option[nl.Count];
     foreach (Option o in nl)
     {
         result[i] = o;
         i++;
     }
     return result;
 }
예제 #2
0
 public Option AddOption()
 {
     Option opt = new Option();
     AddChild(opt);
     return opt;
 }
예제 #3
0
 public void AddOption(Option opt)
 {
     AddChild(opt);
 }
예제 #4
0
 public Option AddOption(string label, string val)
 {
     Option opt = new Option(label, val);
     AddChild(opt);
     return opt;
 }