43 lines
725 B
C#
43 lines
725 B
C#
![]() |
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<RadioButtonCell> RadioButtons
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return this.radios;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public virtual bool Contains(RadioButtonCell cell)
|
|||
|
{
|
|||
|
return this.radios.Contains(cell);
|
|||
|
}
|
|||
|
|
|||
|
private List<RadioButtonCell> radios = new List<RadioButtonCell>();
|
|||
|
}
|
|||
|
}
|