private void button1_Click(object sender, EventArgs e) { withdraw w = new withdraw(cust_id); this.Close(); w.ShowDialog(); }
private void button5_Click(object sender, EventArgs e) { if (radioButton1.Checked) { amd = 100; radioButton1.Checked = false; this.Hide(); withdraw w = new withdraw(cust_id); w.withdrawamt(amd); } else if (radioButton2.Checked) { amd = 500; radioButton2.Checked = false; this.Close(); withdraw w = new withdraw(cust_id); Thread th = new Thread(() => w.withdrawamt(amd)); th.Start(); } else if (radioButton3.Checked) { amd = 1000; radioButton3.Checked = false; this.Close(); withdraw w = new withdraw(cust_id); w.withdrawamt(amd); } else if (radioButton4.Checked) { amd = 10000; radioButton4.Checked = false; this.Close(); withdraw w = new withdraw(cust_id); w.withdrawamt(amd); } else { MessageBox.Show("Select the amount"); } }