private void button8_Click(object sender, EventArgs e) { BloodBankHomeForm uh = new BloodBankHomeForm(); uh.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (BloodbankOperations.Login(textBox1.Text, textBox2.Text)) { BloodBankHomeForm bb = new BloodBankHomeForm(); bb.Show(); this.Hide(); } }
private void button2_Click_1(object sender, EventArgs e) { if (choise == "user") { UserOperations.Request_Blood(NameBox.Text, emailBox.Text, bbnameCombo.Text, TypesCombo.Text, int.Parse(AmountBox.Text)); UserHomeForm rb = new UserHomeForm(); rb.Show(); this.Hide(); } else { BloodbankOperations.Request_Blood(NameBox.Text, emailBox.Text, bbnameCombo.Text, TypesCombo.Text, int.Parse(AmountBox.Text)); BloodBankHomeForm rb = new BloodBankHomeForm(); rb.Show(); this.Hide(); } MessageBox.Show("Done!"); }