Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (String.IsNullOrEmpty(theTbTenNganHang.Text) || String.IsNullOrEmpty(theTbSoTK.Text) || String.IsNullOrEmpty(theTbTenChuThe.Text) || String.IsNullOrEmpty(theTbChiNhanh.Text))
     {
         MessageBox.Show("Vui lòng nhập đủ thông tin.");
     }
     else
     {
         tenNganHang = theTbTenNganHang.Text;
         soTK        = theTbSoTK.Text;
         tenChuThe   = theTbTenChuThe.Text;
         trangThai   = true;
         Hóa_Đơn formHoaDon;
         formHoaDon = new Hóa_Đơn();
         formHoaDon.ShowDialog();
         this.Hide();
     }
 }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //gán giá trị puclic static

            HoTen  = ttHoTen.Text;
            DiaChi = ttDiaChi.Text;
            Email  = ttEmail.Text;
            sdt    = ttSDT.Text;
            // kiểm tra điều kiện thanh toán
            if (checkBoxThe.Checked == true)
            {
                Thẻ the = new Thẻ();

                the.Show();
                the.Activate();
                this.Hide();
            }
            else
            {
                Hóa_Đơn hoaDon = new Hóa_Đơn();
                this.Hide();
                hoaDon.Show();
            }
        }