/// <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; } }
/// <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)); }
public bool Contains(RadioButtonCell cell) { return radios.Contains(cell); }
internal void ClearAllButMe(RadioButtonCell cell) { foreach (var radio in radios) { if (radio != cell) radio.ButtonState = ButtonState.Normal; } }
public void AddRadioButton(RadioButtonCell cell) { if (cell == null) return; if (!radios.Contains(cell)) { radios.Add(cell); } if (cell.RadioGroup != this) { cell.RadioGroup = this; } }