Example #1
0
 public void addSelectChoice(SelectChoice choice)
 {
     if (choices == null)
     {
         choices = new List <SelectChoice>();
     }
     choice.Index = choices.Count;
     choices.Add(choice);
 }
Example #2
0
 public virtual void  addSelectChoice(SelectChoice choice)
 {
     if (choices == null)
     {
         choices = new List <SelectChoice>();
     }
     choice.setIndex(choices.size());
     choices.addElement(choice);
 }
Example #3
0
        public void removeSelectChoice(SelectChoice choice)
        {
            if (choices == null)
            {
                choice.Index = 0;
                return;
            }

            if (choices.Contains(choice))
            {
                choices.Remove(choice);
            }
        }
Example #4
0
        public virtual void  removeSelectChoice(SelectChoice choice)
        {
            if (choices == null)
            {
                choice.Index = 0;
                return;
            }

            if (choices.contains(choice))
            {
                choices.removeElement(choice);
            }
        }