private void usersBtn_Click(object sender, EventArgs e) { Users user = new Users(); MainClass.setCurrentForm(user); MainClass.showWindow(user, this, MDI.ActiveForm); }
public virtual void setPrivilleges_Click(object sender, EventArgs e) { UserPrivileges up = new UserPrivileges(); MainClass.setCurrentForm(new UserPrivileges()); MainClass.showWindow(up, this, MDI.ActiveForm); }
private void rolesBtn_Click(object sender, EventArgs e) { Roles role = new Roles(); MainClass.setCurrentForm(role); MainClass.showWindow(role, this, MDI.ActiveForm); }
private void eventsBtn_Click(object sender, EventArgs e) { Events events = new Events(); MainClass.setCurrentForm(new Students()); MainClass.showWindow(events, this, MDI.ActiveForm); }
private void Event_Load(object sender, EventArgs e) { MainClass.setCurrentForm(new Events()); MainClass.mdi.topic.Text = "Event"; loadEvent(); privillegeCheck(); }
private void stdBtn_Click(object sender, EventArgs e) { Students students = new Students(); MainClass.setCurrentForm(students); logoPanel.Visible = false; MainClass.showWindow(students, this, MDI.ActiveForm); }
private void Students_Load(object sender, EventArgs e) { privilegesAndAttendance.Visible = true; MainClass.setCurrentForm(new Students()); MainClass.mdi.topic.Text = "Students"; loadStudents(); privillegeCheck(); loadGradesClasses(); MainClass.setBtnVisibilityTrue(adSearch); }
private void MDI_Load(object sender, EventArgs e) { Home home = new Home(); MainClass.setCurrentForm(home); topic.Text = MainClass.current.Name; home.MdiParent = this; home.WindowState = FormWindowState.Maximized; home.Show(); }
public void loadUsers() { MainClass.disable_reset(panel5); MainClass.setCurrentForm(new Users()); MainClass.mdi.topic.Text = "Users"; var dataSet = obj.users_viewUsers(); userId.DataPropertyName = "userId"; userName.DataPropertyName = "userName"; roleId.DataPropertyName = "roleId"; usersGridView.DataSource = dataSet; }
public void loadRoles() { MainClass.disable_reset(panel5); MainClass.setCurrentForm(new Roles()); MainClass.mdi.topic.Text = "Roles"; var dataSet = obj.roles_getRoles(); RolesIdGV.DataPropertyName = "ID"; RolesGv.DataPropertyName = "Role"; statusGv.DataPropertyName = "Status"; rolesDGV.DataSource = dataSet; }
private void StudentAttendance_Load(object sender, EventArgs e) { viewBtn.Enabled = false; viewBtn.Text = "VIEW REPORT"; MainClass.setCurrentForm(new Students()); MainClass.mdi.topic.Text = "Student Attendance"; privilegesAndAttendance.Visible = false; loadGradesClasses(); bool res = ifRecorded(); if (res == true) { loadStudentAttendance(); } else { loadStudentswithoutAttendance(); } }
private void UserPrivileges_Load(object sender, EventArgs e) { MainClass.setCurrentForm(new UserPrivileges()); MainClass.mdi.topic.Text = "User Privileges"; }