public AddSubjectForm(Controller.UserAccount ua) { InitializeComponent(); subjectName = string.Empty; subject = new Controller.Subject(); userAccount = ua; }
public AddTeacherForm(Controller.UserAccount ua) { InitializeComponent(); teacherName = string.Empty; teacher = new Controller.Teacher(); userAccount = ua; }
public AddSectionForm(Controller.UserAccount ua, int secId) { InitializeComponent(); sectionName = string.Empty; section = new Controller.Section { sectionID = secId }; }
String[] name; //For names passing in the query public AddSectionForm(Controller.UserAccount ua) { InitializeComponent(); addSectionForm = this; sectionName = string.Empty; section = new Controller.Section(); userAccount = ua; MessageBox.Show("Called the User identification constructor."); }
public AddUserAccount(int userACID) { InitializeComponent(); userName = string.Empty; userAccount = new Controller.UserAccount { ua_id = userACID }; }
public AddStudentForm(Controller.UserAccount ua, int stdID) { InitializeComponent(); student = new Controller.Student { studentID = stdID }; userAccount = ua; }
public AddTeacherForm(Controller.UserAccount ua, int teacher_ID) { InitializeComponent(); teacherName = string.Empty; teacher = new Controller.Teacher { teacherID = teacher_ID }; userAccount = ua; }
private void LoginButton_Click(object sender, EventArgs e) { if (!LoginValidation()) { return; } Controller.UserAccount userAccount = new Controller.UserAccount(); if (userAccount.UserLoginAuthentication(UsernameTextBox.Text, PasswordTextBox.Text)) { UsernameTextBox.Clear(); PasswordTextBox.Clear(); UsernameTextBox.Focus(); HomeForm homeForm = new HomeForm(userAccount); this.Hide(); homeForm.ShowDialog(); } }
public ViewStudentForm(Controller.UserAccount ua) { InitializeComponent(); student = new Controller.Student(); userAccount = ua; }
public AddUserAccount() { InitializeComponent(); userName = string.Empty; userAccount = new Controller.UserAccount(); }
public HomeForm(Controller.UserAccount ua) { InitializeComponent(); userAccount = ua; }