Exemple #1
0
        private void tbnCapNhat_Click(object sender, EventArgs e)
        {
            int r = dgvThongTinChiTiet.CurrentCell.RowIndex;

            makh   = dgvThongTinChiTiet.Rows[r].Cells[0].Value.ToString();
            tenkh  = dgvThongTinChiTiet.Rows[r].Cells[1].Value.ToString();
            diachi = dgvThongTinChiTiet.Rows[r].Cells[2].Value.ToString();
            sdt    = dgvThongTinChiTiet.Rows[r].Cells[3].Value.ToString();
            DangKyKhachHang d = new DangKyKhachHang(makh, tenkh, diachi, sdt);

            d.Show();
        }
Exemple #2
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            DangKyKhachHang dk = new DangKyKhachHang(null, null, null, null);

            dk.Show();
        }
        private void btnDKKH_Click(object sender, EventArgs e)
        {
            DangKyKhachHang d = new DangKyKhachHang(null, null, null, null);

            d.Show();
        }