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)
14
if (
Control
.Appearance == Appearance.Button)
16
ButtonFlatAdapter adapter = new(
Control
);
17
adapter.PaintDown(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
22
if (
Control
.Enabled)
34
if (
Control
.Appearance == Appearance.Button)
36
ButtonFlatAdapter adapter = new(
Control
);
37
adapter.PaintOver(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
42
if (
Control
.Enabled)
54
if (
Control
.Appearance == Appearance.Button)
56
ButtonFlatAdapter adapter = new(
Control
);
57
adapter.PaintUp(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
62
if (
Control
.Enabled)
75
PaintButtonBackground(e,
Control
.ClientRectangle, background: null);
83
protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonFlatAdapter(
Control
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (15)
12
if (
Control
.Appearance == Appearance.Button)
14
ButtonPopupAdapter adapter = new(
Control
);
15
adapter.PaintUp(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
22
PaintButtonBackground(e,
Control
.ClientRectangle, background: null);
41
if (
Control
.Appearance == Appearance.Button)
43
ButtonPopupAdapter adapter = new(
Control
);
44
adapter.PaintOver(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
51
PaintButtonBackground(e,
Control
.ClientRectangle, background: null);
66
if (
Control
.Appearance == Appearance.Button)
68
ButtonPopupAdapter adapter = new(
Control
);
69
adapter.PaintDown(e,
Control
.Checked ? CheckState.Checked : CheckState.Unchecked);
76
PaintButtonBackground(e,
Control
.ClientRectangle, background: null);
88
protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonPopupAdapter(
Control
);
94
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
;