private void btn_thanh_toan_Click(object sender, EventArgs e) { GUI_form_thanh_toan t = new GUI_form_thanh_toan(); this.Hide(); t.ShowDialog(); this.Show(); }
private void btn_thanhtoan_Click(object sender, EventArgs e) { if (txt_sohd.Text == "") { MessageBox.Show("Bàn đang trống, không thể thanh toán"); } else { GUI_form_thanh_toan f = new GUI_form_thanh_toan(txt_soban.Text); f.ShowDialog(); this.Close(); } }