Exemplo n.º 1
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            ItemKhachHang _ItemKhachHang = new ItemKhachHang("");

            _ItemKhachHang.ShowDialog();
            if (_ItemKhachHang.check == true)
            {
                DataTable DT = _TB_KhachhangTableAdapter.GetData();
                dsKhachHang.DataSource = DT.DefaultView;
            }
        }
Exemplo n.º 2
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            string        s = dsKhachHang.CurrentRow.Cells["MaKH"].Value.ToString();
            ItemKhachHang _ItemKhachHang = new ItemKhachHang(s);

            _ItemKhachHang.ShowDialog();
            if (_ItemKhachHang.check == true)
            {
                DataTable DT = _TB_KhachhangTableAdapter.GetData();
                dsKhachHang.DataSource = DT.DefaultView;
            }
        }