Beispiel #1
0
        private void btnKTKH_Click(object sender, EventArgs e)
        {
            if (txtMaKH.Text.Length == 0)
            {
                MessageBox.Show("Chưa nhập Khách Hàng", "Lưu Ý", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            LoadKhachHang();
            DataRow dr = ds.Tables["KhachHang"].Rows.Find(txtMaKH.Text);

            if (dr == null)
            {
                if (MessageBox.Show("Chưa đăng ký thành viên ! Bạn muốn thêm thành viên không", "Lưu ý", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
                {
                    Customers cs = new Customers(txtMaKH.Text);
                    cs.Show();
                }
            }
            else
            {
                MessageBox.Show("Tồn Tại", "Lưu ý", MessageBoxButtons.OK);
            }
        }
Beispiel #2
0
        private void btnCustomers_Click(object sender, EventArgs e)
        {
            Customers cus = new Customers();

            cus.Show();
        }