-
Notifications
You must be signed in to change notification settings - Fork 0
/
FrnMain.cs
157 lines (134 loc) · 4.19 KB
/
FrnMain.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Hostel_Managment_System
{
public partial class FrnMain : Form
{
public FrnMain()
{
InitializeComponent();
}
private void BtnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void bunifuImageButton3_Click(object sender, EventArgs e)
{
if (PnlButtonsControle.Width == 186)
{
PnlButtonsControle.Width = 60;
BtnColl.Rotate(180);
}
else if(PnlButtonsControle.Width == 60)
{
PnlButtonsControle.Width = 186;
BtnColl.Rotate(0);
}
else
{
PnlButtonsControle.Width = 60;
BtnColl.Rotate(180);
}
}
private void bunifuFlatButton3_Click(object sender, EventArgs e)
{
PnlBtnSlider.Top = BtnMonthFee.Top;
uc_StudentFee1.BringToFront();
}
private void BtnManageRoom_Click(object sender, EventArgs e)
{
PnlBtnSlider.Top = BtnManageRoom.Top;
uC_ManageRoom1.BringToFront();
}
private void BtnNewStudent_Click(object sender, EventArgs e)
{
PnlBtnSlider.Top = BtnNewStudent.Top;
uC_NewStudent1.BringToFront();
}
private void BtnLeavingStudent_Click(object sender, EventArgs e)
{
PnlBtnSlider.Top = BtnLeavingStudent.Top;
WindowState = FormWindowState.Maximized;
uC_LivingStudent1.BringToFront();
}
private void BtnUpdate_Click(object sender, EventArgs e)
{
PnlBtnSlider.Top = BtnUpdate.Top;
uC_UpdateDelete1.BringToFront();
}
private void BtnLeavedStudent_Click(object sender, EventArgs e)
{
PnlBtnSlider.Top = BtnLeavedStudent.Top;
WindowState = FormWindowState.Maximized;
uC_LeavedStudent1.BringToFront();
}
private void BtnMinimize_Click(object sender, EventArgs e)
{
WindowState = FormWindowState.Minimized;
}
private void PnlTop_DoubleClick(object sender, EventArgs e)
{
if(WindowState == FormWindowState.Maximized)
{
WindowState = FormWindowState.Normal;
}
else if(WindowState == FormWindowState.Normal)
{
WindowState = FormWindowState.Maximized;
}
else
{
WindowState = FormWindowState.Normal;
}
}
private void BtnRerstore_Click(object sender, EventArgs e)
{
if(WindowState == FormWindowState.Maximized)
{
WindowState = FormWindowState.Normal;
}
else if (WindowState == FormWindowState.Normal)
{
WindowState = FormWindowState.Maximized;
}
else
{
WindowState = FormWindowState.Normal;
}
}
private void BtnLogout_Click(object sender, EventArgs e)
{
FrmLofgin lf = new FrmLofgin();
this.Close();
lf.Show();
}
private void BtnAdmin_Click(object sender, EventArgs e)
{
PnlBtnSlider.Top = BtnAdmin.Top;
uC_Admin1.BringToFront();
}
private void bunifuFlatButton1_Click(object sender, EventArgs e)
{
PnlBtnSlider.Top = BtnHome.Top;
uC_Home1.BringToFront();
}
private void BtnAboutDev_Click(object sender, EventArgs e)
{
Frm_AboutDev ad = new Frm_AboutDev();
this.Hide();
ad.Show();
}
private void BtnInOut_Click(object sender, EventArgs e)
{
PnlBtnSlider.Top = BtnInOut.Top;
uC_InOut1.BringToFront();
}
}
}