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!"); }
private void button2_Click(object sender, EventArgs e) { UserOperations.Request_Blood(NameBox.Text, emailBox.Text, bbnameCombo.Text, TypesCombo.Text, int.Parse(AmountBox.Text)); }