-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenuWindows.h
206 lines (191 loc) · 8.48 KB
/
MenuWindows.h
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
#pragma once
#include "AddStudentForm.h"
//#include "LoginForm.h"
#include "AttendanceStudentForm.h"
#include "GradesForm.h"
#include "ViewStudentInformation.h"
namespace endsemesterproject {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for MenuWindows
/// </summary>
public ref class MenuWindows : public System::Windows::Forms::Form
{
public:
MenuWindows(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~MenuWindows()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ AddStudent_Button;
private: System::Windows::Forms::Button^ DeleteStudent_Button;
private: System::Windows::Forms::Button^ EnterGrades_Button;
private: System::Windows::Forms::Button^ ViewStudentInformation_Button;
private: System::Windows::Forms::Button^ Attendance_Button;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Button^ Logout_Button;
protected:
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
this->AddStudent_Button = (gcnew System::Windows::Forms::Button());
this->DeleteStudent_Button = (gcnew System::Windows::Forms::Button());
this->EnterGrades_Button = (gcnew System::Windows::Forms::Button());
this->ViewStudentInformation_Button = (gcnew System::Windows::Forms::Button());
this->Attendance_Button = (gcnew System::Windows::Forms::Button());
this->label1 = (gcnew System::Windows::Forms::Label());
this->Logout_Button = (gcnew System::Windows::Forms::Button());
this->SuspendLayout();
//
// AddStudent_Button
//
this->AddStudent_Button->Font = (gcnew System::Drawing::Font(L"Arial", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->AddStudent_Button->Location = System::Drawing::Point(39, 136);
this->AddStudent_Button->Name = L"AddStudent_Button";
this->AddStudent_Button->Size = System::Drawing::Size(116, 26);
this->AddStudent_Button->TabIndex = 0;
this->AddStudent_Button->Text = L"Add Student";
this->AddStudent_Button->UseVisualStyleBackColor = true;
this->AddStudent_Button->Click += gcnew System::EventHandler(this, &MenuWindows::AddStudent_Button_Click);
//
// DeleteStudent_Button
//
this->DeleteStudent_Button->Font = (gcnew System::Drawing::Font(L"Arial", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->DeleteStudent_Button->Location = System::Drawing::Point(234, 136);
this->DeleteStudent_Button->Name = L"DeleteStudent_Button";
this->DeleteStudent_Button->Size = System::Drawing::Size(122, 26);
this->DeleteStudent_Button->TabIndex = 1;
this->DeleteStudent_Button->Text = L"Delete Student";
this->DeleteStudent_Button->UseVisualStyleBackColor = true;
//
// EnterGrades_Button
//
this->EnterGrades_Button->Font = (gcnew System::Drawing::Font(L"Arial", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->EnterGrades_Button->Location = System::Drawing::Point(450, 136);
this->EnterGrades_Button->Name = L"EnterGrades_Button";
this->EnterGrades_Button->Size = System::Drawing::Size(112, 26);
this->EnterGrades_Button->TabIndex = 2;
this->EnterGrades_Button->Text = L"Enter Grades";
this->EnterGrades_Button->UseVisualStyleBackColor = true;
this->EnterGrades_Button->Click += gcnew System::EventHandler(this, &MenuWindows::EnterGrades_Button_Click);
//
// ViewStudentInformation_Button
//
this->ViewStudentInformation_Button->Font = (gcnew System::Drawing::Font(L"Arial", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->ViewStudentInformation_Button->Location = System::Drawing::Point(39, 234);
this->ViewStudentInformation_Button->Name = L"ViewStudentInformation_Button";
this->ViewStudentInformation_Button->Size = System::Drawing::Size(116, 49);
this->ViewStudentInformation_Button->TabIndex = 3;
this->ViewStudentInformation_Button->Text = L"View Student Information";
this->ViewStudentInformation_Button->UseVisualStyleBackColor = true;
this->ViewStudentInformation_Button->Click += gcnew System::EventHandler(this, &MenuWindows::ViewStudentInformation_Button_Click);
//
// Attendance_Button
//
this->Attendance_Button->Font = (gcnew System::Drawing::Font(L"Arial", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->Attendance_Button->Location = System::Drawing::Point(639, 136);
this->Attendance_Button->Name = L"Attendance_Button";
this->Attendance_Button->Size = System::Drawing::Size(96, 26);
this->Attendance_Button->TabIndex = 4;
this->Attendance_Button->Text = L"Attendance";
this->Attendance_Button->UseVisualStyleBackColor = true;
this->Attendance_Button->Click += gcnew System::EventHandler(this, &MenuWindows::Attendance_Button_Click);
//
// label1
//
this->label1->AutoSize = true;
this->label1->Font = (gcnew System::Drawing::Font(L"Arial", 24, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label1->Location = System::Drawing::Point(250, 20);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(312, 37);
this->label1->TabIndex = 5;
this->label1->Text = L"Menu Home Screen";
//
// Logout_Button
//
this->Logout_Button->Font = (gcnew System::Drawing::Font(L"Arial", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->Logout_Button->Location = System::Drawing::Point(651, 234);
this->Logout_Button->Name = L"Logout_Button";
this->Logout_Button->Size = System::Drawing::Size(84, 49);
this->Logout_Button->TabIndex = 6;
this->Logout_Button->Text = L"Logout";
this->Logout_Button->UseVisualStyleBackColor = true;
this->Logout_Button->Click += gcnew System::EventHandler(this, &MenuWindows::Logout_Button_Click);
//
// MenuWindows
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(784, 361);
this->Controls->Add(this->Logout_Button);
this->Controls->Add(this->label1);
this->Controls->Add(this->Attendance_Button);
this->Controls->Add(this->ViewStudentInformation_Button);
this->Controls->Add(this->EnterGrades_Button);
this->Controls->Add(this->DeleteStudent_Button);
this->Controls->Add(this->AddStudent_Button);
this->Name = L"MenuWindows";
this->Text = L"MenuWindows";
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void AddStudent_Button_Click(System::Object^ sender, System::EventArgs^ e) {
AddStudentForm ^ form = gcnew AddStudentForm;
form->ShowDialog();
}
/*private: System::Void Logout_Button_Click(System::Object^ sender, System::EventArgs^ e) {
LoginForm ^ form = gcnew LoginForm;
form->ShowDialog();
}*/
private: System::Void EnterGrades_Button_Click(System::Object^ sender, System::EventArgs^ e) {
GradesForm ^ form = gcnew GradesForm;
form->ShowDialog();
}
private: System::Void Attendance_Button_Click(System::Object^ sender, System::EventArgs^ e) {
AttendanceStudentForm ^ form = gcnew AttendanceStudentForm;
form->ShowDialog();
}
private: System::Void ViewStudentInformation_Button_Click(System::Object^ sender, System::EventArgs^ e) {
ViewStudentInformation ^ form = gcnew ViewStudentInformation;
form->ShowDialog();
}
private: System::Void Logout_Button_Click(System::Object^ sender, System::EventArgs^ e) {
Close();
}
};
}