-
Notifications
You must be signed in to change notification settings - Fork 16
/
Class2.cs
80 lines (72 loc) · 1.53 KB
/
Class2.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
using System;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
internal class Class2 : GroupBox
{
bool _003CDoubleClickSelectCheckBox_003Ek__BackingField;
[CompilerGenerated]
public bool method_0()
{
return this._003CDoubleClickSelectCheckBox_003Ek__BackingField;
}
[CompilerGenerated]
public void method_1(bool bool_0)
{
this._003CDoubleClickSelectCheckBox_003Ek__BackingField = bool_0;
}
bool _003CClickFocus_003Ek__BackingField;
[CompilerGenerated]
public bool method_2()
{
return this._003CClickFocus_003Ek__BackingField;
}
[CompilerGenerated]
public void method_3(bool bool_0)
{
this._003CClickFocus_003Ek__BackingField = bool_0;
}
public Class2()
{
//base._002Ector();
this.method_1(false);
this.method_3(true);
}
protected override void OnClick(EventArgs e)
{
if (this.method_2())
{
base.Focus();
}
base.OnClick(e);
}
protected override void OnDoubleClick(EventArgs e)
{
if (this.method_0())
{
MouseEventArgs mouseEventArgs = e as MouseEventArgs;
if (mouseEventArgs != null)
{
foreach (object control in base.Controls)
{
CheckBox checkBox = control as CheckBox;
if (checkBox != null && checkBox.Enabled)
{
if (mouseEventArgs.Button == MouseButtons.Left)
{
checkBox.Checked = true;
}
else if (mouseEventArgs.Button == MouseButtons.Right)
{
checkBox.Checked = false;
}
else
{
checkBox.Checked = !checkBox.Checked;
}
}
}
}
}
base.OnDoubleClick(e);
}
}