Exemple #1
0
        /// <summary>
        /// Add radio button into this group.
        /// </summary>
        /// <param name="cell"></param>
        public virtual void AddRadioButton(RadioButtonCell cell)
        {
            if (cell == null)
            {
                return;
            }

            if (!radios.Contains(cell))
            {
                radios.Add(cell);
            }

            if (cell.RadioGroup != this)
            {
                cell.RadioGroup = this;
            }
        }
Exemple #2
0
 /// <summary>
 /// Check whether specified radio is contained by this group.
 /// </summary>
 /// <param name="cell">radio cell body to be checked.</param>
 /// <returns>true if the radio cell body is contained by this group.</returns>
 public virtual bool Contains(RadioButtonCell cell)
 {
     return(radios.Contains(cell));
 }
Exemple #3
0
 public bool Contains(RadioButtonCell cell)
 {
     return radios.Contains(cell);
 }
Exemple #4
0
 internal void ClearAllButMe(RadioButtonCell cell)
 {
     foreach (var radio in radios)
     {
         if (radio != cell) radio.ButtonState = ButtonState.Normal;
     }
 }
Exemple #5
0
        public void AddRadioButton(RadioButtonCell cell)
        {
            if (cell == null) return;

            if (!radios.Contains(cell))
            {
                radios.Add(cell);
            }

            if (cell.RadioGroup != this)
            {
                cell.RadioGroup = this;
            }
        }