forked from Clancey/MonoDroid.Dialog
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathGroup.cs
36 lines (32 loc) · 791 Bytes
/
Group.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace Android.Dialog
{
/// <summary>
/// Used by root elements to fetch information when they need to
/// render a summary (Checkbox count or selected radio group).
/// </summary>
public class Group
{
public string Key;
public Group(string key)
{
Key = key;
}
}
/// <summary>
/// Captures the information about mutually exclusive elements in a RootElement
/// </summary>
public class RadioGroup : Group
{
public int Selected;
public RadioGroup(string key, int selected)
: base(key)
{
Selected = selected;
}
public RadioGroup(int selected)
: base(null)
{
Selected = selected;
}
}
}