private void button1_Click(object sender, EventArgs e) { String username = this.textBox1.Text; String password = this.textBox2.Text; id = DBMng.validateEnrollee(username, password); if (id != 0) { // We can make a list of users for the next iteration // I don't feel like it right now // this should be in an if-else branch Enrollee.CurrentUser = username; this.Hide(); EnrolleeHomePage newform = new EnrolleeHomePage(id); newform.ShowDialog(); } else { this.label3.Visible = true; } this.textBox1.Text = ""; this.textBox2.Text = ""; }
private void Button1_Click(object sender, EventArgs e) { if (checkBox3.Checked) { Enrollee.plan = true; } else { Enrollee.plan = false; } String fullname = textBox1.Text; String ssn = textBox2.Text; String bAddress = textBox3.Text; String mAddress = textBox4.Text; String username = textBox5.Text; String password = textBox6.Text; string pin = PINTextBox.Text; DBMng.insertIntoPrimaryEnrollee(plantype, fullname, username, password, mAddress, bAddress, ssn, pin); int id; id = DBMng.validateEnrollee(username, password); if (DBMng.getPlanTypeEnrollee(id) == "basic") { DBMng.updateDeductible(id, 250); } this.Hide(); EnrolleeHomePage newEnrolleeInfo = new EnrolleeHomePage(id); newEnrolleeInfo.ShowDialog(); }
private void Button2_Click(object sender, EventArgs e) { this.Hide(); EnrolleeHomePage newform = new EnrolleeHomePage(enrolleeID); newform.ShowDialog(); }
private void Button1_Click(object sender, EventArgs e) { this.Hide(); EnrolleeHomePage newEnrolleeInfo = new EnrolleeHomePage(enrid); newEnrolleeInfo.ShowDialog(); }
private void Button1_Click(object sender, EventArgs e) { if (whoLogged == 0) { userId = DBMng.validateEnrolleeWithPin(textBox1.Text); if (userId != 0) { this.Hide(); EnrolleeHomePage newform = new EnrolleeHomePage(userId); newform.ShowDialog(); } label2.Visible = true; textBox1.Text = ""; } else { userId = DBMng.validateHSPWithPin(textBox1.Text); if (userId != 0) { this.Hide(); HSPinfoGUI info = new HSPinfoGUI(userId); info.ShowDialog(); } label2.Visible = true; textBox1.Text = ""; } }
private void Button1_Click(object sender, EventArgs e) { DBMng.changePlan(userId); this.Hide(); EnrolleeHomePage newform = new EnrolleeHomePage(userId); newform.ShowDialog(); }
private void button2_Click(object sender, EventArgs e) { if (accessedBy == 0) { this.Hide(); EnrolleeHomePage newform = new EnrolleeHomePage(enrolleeID); newform.ShowDialog(); } else { this.Hide(); EnrolleeInfo newform = new EnrolleeInfo(enrolleeID, accessedBy); newform.ShowDialog(); } }