50 references to Control
System.Windows.Forms (50)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (12)
35
if (!
Control
.Enabled && disabledColors)
63
if (!
Control
.Enabled)
135
if (!
Control
.Checked)
140
if (!
Control
.Enabled && disabledColors)
172
if (
Control
.Checked)
181
if (!
Control
.Enabled)
186
if (
Control
.MouseIsDown)
210
RadioButtonRenderer.ConvertFromButtonState(style,
Control
.MouseIsOver),
211
Control
.HWNDInternal);
221
if (string.IsNullOrEmpty(
Control
.Text))
227
layout.Focus =
Control
.AutoSize ? layout.CheckBounds : layout.Field;
234
layout.CheckAlign =
Control
.CheckAlign;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (14)
16
if (
Control
.Appearance == Appearance.Button)
18
ButtonFlatAdapter adapter = new(
Control
);
19
adapter.PaintDown(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
24
if (
Control
.Enabled)
36
if (
Control
.Appearance == Appearance.Button)
38
ButtonFlatAdapter adapter = new(
Control
);
39
adapter.PaintOver(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
44
if (
Control
.Enabled)
56
if (
Control
.Appearance == Appearance.Button)
58
ButtonFlatAdapter adapter = new(
Control
);
59
adapter.PaintUp(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
64
if (
Control
.Enabled)
77
PaintButtonBackground(e,
Control
.ClientRectangle, background: null);
85
protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonFlatAdapter(
Control
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (15)
14
if (
Control
.Appearance == Appearance.Button)
16
ButtonPopupAdapter adapter = new(
Control
);
17
adapter.PaintUp(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
24
PaintButtonBackground(e,
Control
.ClientRectangle, background: null);
43
if (
Control
.Appearance == Appearance.Button)
45
ButtonPopupAdapter adapter = new(
Control
);
46
adapter.PaintOver(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
53
PaintButtonBackground(e,
Control
.ClientRectangle, background: null);
68
if (
Control
.Appearance == Appearance.Button)
70
ButtonPopupAdapter adapter = new(
Control
);
71
adapter.PaintDown(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
78
PaintButtonBackground(e,
Control
.ClientRectangle, background: null);
90
protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonPopupAdapter(
Control
);
96
if (!
Control
.MouseIsDown && !
Control
.MouseIsOver)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonStandardAdapter.cs (9)
12
if (
Control
.Appearance == Appearance.Button)
14
ButtonAdapter.PaintUp(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
20
PaintButtonBackground(e,
Control
.ClientRectangle, background: null);
31
if (
Control
.Appearance == Appearance.Button)
33
ButtonAdapter.PaintDown(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
43
if (
Control
.Appearance == Appearance.Button)
45
ButtonAdapter.PaintOver(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
55
protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonStandardAdapter(
Control
);
65
ButtonBase b =
Control
;