using System; using System.Collections.Generic; namespace CPF.ReoGrid.CellTypes { [Serializable] public class RadioButtonGroup { public virtual void AddRadioButton(RadioButtonCell cell) { bool flag = cell == null; if (!flag) { bool flag2 = !this.radios.Contains(cell); if (flag2) { this.radios.Add(cell); } bool flag3 = cell.RadioGroup != this; if (flag3) { cell.RadioGroup = this; } } } public List RadioButtons { get { return this.radios; } } public virtual bool Contains(RadioButtonCell cell) { return this.radios.Contains(cell); } private List radios = new List(); } }