-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.cs
192 lines (146 loc) · 5.8 KB
/
MainPage.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
using DevExpress.XtraBars;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
namespace FighyGym2
{
public partial class MainPage : DevExpress.XtraBars.FluentDesignSystem.FluentDesignForm
{
public MainPage()
{
InitializeComponent();
this.EnableAcrylicAccent = true;
DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinMaskColors(Color.DarkBlue, Color.LightBlue);
}
private void accordionControlElement3_Click(object sender, EventArgs e)
{
}
private void tileControl1_Click(object sender, EventArgs e)
{
}
private void MainPage_Load(object sender, EventArgs e)
{
//Classalarm cd = new Classalarm();
//var thread =new Thread( new ThreadStart(cd.fun));
//thread.Start();
// thread.BeginInvoke(100, "", null, null);
}
private void accordionControl1_Click(object sender, EventArgs e)
{
}
private void tileControl1_Click_1(object sender, EventArgs e)
{
}
private void accordionControlElement10_Click(object sender, EventArgs e)
{
if (!containers.Controls.Contains(ConEditStudents.Instance))
{
containers.Controls.Add(ConEditStudents.Instance);
ConEditStudents.Instance.Dock = DockStyle.Fill;
ConEditStudents.Instance.BringToFront();
}
ConEditStudents.Instance.BringToFront();
}
private void tileItem1_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
{
}
private void accordionControlElement11_Click(object sender, EventArgs e)
{
if (!containers.Controls.Contains(Con_Eshtracat.Instance))
{
containers.Controls.Add(Con_Eshtracat.Instance);
Con_Eshtracat.Instance.Dock = DockStyle.Fill;
Con_Eshtracat.Instance.BringToFront();
}
Con_Eshtracat.Instance.BringToFront();
}
private void accordionControlElement12_Click(object sender, EventArgs e)
{
if (!containers.Controls.Contains(CondetialsEshtracat.Instance))
{
containers.Controls.Add(CondetialsEshtracat.Instance);
CondetialsEshtracat.Instance.Dock = DockStyle.Fill;
CondetialsEshtracat.Instance.BringToFront();
}
CondetialsEshtracat.Instance.BringToFront();
}
private void accordionControlElement9_Click(object sender, EventArgs e)
{
if (!containers.Controls.Contains(Con_Homecs.Instance))
{
containers.Controls.Add(Con_Homecs.Instance);
Con_Homecs.Instance.Dock = DockStyle.Fill;
Con_Homecs.Instance.BringToFront();
}else
{
if(containers.Controls.Contains(Con_Homecs.Instance))
{
containers.Controls.Add(Con_Homecs.Instance);
Con_Homecs.Instance.Dock = DockStyle.Fill;
Con_Homecs.Instance.BringToFront();
}
// Con_Homecs.Instance.BringToFront();
}
Con_Homecs.Instance.BringToFront();
}
private void tileItem3_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
{
if (!containers.Controls.Contains(ConEditStudents.Instance))
{
containers.Controls.Add(ConEditStudents.Instance);
ConEditStudents.Instance.Dock = DockStyle.Fill;
ConEditStudents.Instance.BringToFront();
}
ConEditStudents.Instance.BringToFront();
}
private void containers_Click(object sender, EventArgs e)
{
}
private void accordionControlElement13_Click(object sender, EventArgs e)
{
if (!containers.Controls.Contains(AddEmployee.Instance))
{
containers.Controls.Add(AddEmployee.Instance);
AddEmployee.Instance.Dock = DockStyle.Fill;
AddEmployee.Instance.BringToFront();
}
AddEmployee.Instance.BringToFront();
}
private void tileItem10_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
{
if (!containers.Controls.Contains(Con_Eshtracat.Instance))
{
containers.Controls.Add(Con_Eshtracat.Instance);
Con_Eshtracat.Instance.Dock = DockStyle.Fill;
Con_Eshtracat.Instance.BringToFront();
}
Con_Eshtracat.Instance.BringToFront();
}
private void tileItem4_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
{
if (!containers.Controls.Contains(AddEmployee.Instance))
{
containers.Controls.Add(AddEmployee.Instance);
AddEmployee.Instance.Dock = DockStyle.Fill;
AddEmployee.Instance.BringToFront();
}
AddEmployee.Instance.BringToFront();
}
private void tileItem9_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
{
if (!containers.Controls.Contains(CondetialsEshtracat.Instance))
{
containers.Controls.Add(CondetialsEshtracat.Instance);
CondetialsEshtracat.Instance.Dock = DockStyle.Fill;
CondetialsEshtracat.Instance.BringToFront();
}
CondetialsEshtracat.Instance.BringToFront();
}
}
}