-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.vb
153 lines (132 loc) · 4.48 KB
/
dashboard.vb
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
Public Class dashboard
Sub Close_All_Window()
student.Close()
room.Close()
manage.Close()
payment.Close()
records.Close()
employee.Close()
add.Close()
admin.Close()
manageemp.Close()
manageroom.Close()
manageresident.Close()
End Sub
'This Sub is used for making round edges to the software
Sub rounding(obj As Form)
obj.FormBorderStyle = FormBorderStyle.None
obj.BackColor = Color.Cyan
Dim DGP As New Drawing2D.GraphicsPath
DGP.StartFigure()
'top left corner
DGP.AddArc(New Rectangle(0, 0, 40, 40), 180, 90)
DGP.AddLine(40, 0, obj.Width - 40, 0)
'top right corner
DGP.AddArc(New Rectangle(obj.Width - 40, 0, 40, 40), -90, 90)
DGP.AddLine(obj.Width, 40, obj.Width, obj.Height - 40)
'buttom right corner
DGP.AddArc(New Rectangle(obj.Width - 40, obj.Height - 40, 40, 40), 0, 90)
DGP.AddLine(obj.Width - 40, obj.Height, 40, obj.Height)
'buttom left corner
DGP.AddArc(New Rectangle(0, obj.Height - 40, 40, 40), 90, 90)
DGP.CloseFigure()
obj.Region = New Region(DGP)
End Sub
'EXIT BUTTON
Private Sub IconButton2_Click(sender As Object, e As EventArgs) Handles exitbtn.Click
Dim result As DialogResult = MessageBox.Show("EXIT APPLICATION?", "EXIT", MessageBoxButtons.YesNo)
If result = DialogResult.Yes Then
Application.Exit()
ElseIf result = DialogResult.No Then
End If
End Sub
Private Sub IconButton3_Click(sender As Object, e As EventArgs) Handles payBtn.Click
Close_All_Window()
With payment
.TopLevel = False
Panel4.Controls.Add(payment)
.BringToFront()
.Show()
End With
disall.Text = "FEES PAYMENT"
End Sub
Private Sub IconButton1_Click(sender As Object, e As EventArgs) Handles STDbutton.Click
Close_All_Window()
With student
.TopLevel = False
Panel4.Controls.Add(student)
.BringToFront()
.Show()
End With
disall.Text = "ADD NEW STUDENT"
End Sub
Private Sub IconButton5_Click(sender As Object, e As EventArgs) Handles managerR.Click
Close_All_Window()
With manageroom
.TopLevel = False
Panel4.Controls.Add(manageroom)
.BringToFront()
.Show()
End With
disall.Text = "MANAGE ROOMS"
End Sub
Private Sub IconButton4_Click(sender As Object, e As EventArgs) Handles empBtn.Click
Close_All_Window()
With employee
.TopLevel = False
Panel4.Controls.Add(employee)
.BringToFront()
.Show()
End With
disall.Text = "ADD NEW EMPLOYEE"
End Sub
Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles homebtn.Click
Close_All_Window()
disall.Text = "HOSTEL MANAGEMENT SYSYTEM"
End Sub
Private Sub IconButton1_Click_1(sender As Object, e As EventArgs) Handles managebtn.Click
Close_All_Window()
With manage
.TopLevel = False
Panel4.Controls.Add(manage)
.BringToFront()
.Show()
End With
disall.Text = "MANAGE STUDENT RECORDS"
End Sub
Private Sub dashboard_Load(sender As Object, e As EventArgs) Handles MyBase.Load
rounding(Me)
End Sub
Private Sub IconButton1_Click_2(sender As Object, e As EventArgs) Handles manageempbtn.Click
Close_All_Window()
With manageemp
.TopLevel = False
Panel4.Controls.Add(manageemp)
.BringToFront()
.Show()
End With
disall.Text = "MANAGE EMPLOYEE RECORDS"
End Sub
Private Sub IconButton2_Click_1(sender As Object, e As EventArgs)
Close_All_Window()
With add
.TopLevel = False
Panel4.Controls.Add(add)
.BringToFront()
.Show()
End With
disall.Text = "ADD ROOMS"
End Sub
Private Sub IconButton2_Click_2(sender As Object, e As EventArgs) Handles settingsbtn.Click
Close_All_Window()
With admin
.TopLevel = False
Panel4.Controls.Add(admin)
.BringToFront()
.Show()
End With
disall.Text = "ADMIN PANEL"
End Sub
Private Sub PictureBox4_Click(sender As Object, e As EventArgs)
End Sub
End Class