Example #1
0
        private void BtnThem_Click(object sender, EventArgs e)
        {
            frmThemSuaKhoHang frmtkh = new frmThemSuaKhoHang();

            frmtkh.ThemThanhCong += FillGridView;
            frmtkh.ThemThanhCong += NhatKyThem;
            frmtkh.ShowDialog();
        }
Example #2
0
        private void BtnSua_Click(object sender, EventArgs e)
        {
            if (CurRowIndex >= 0)
            {
                KhoHang kho = LayKhoDangChon();

                frmThemSuaKhoHang frmSua = new frmThemSuaKhoHang(kho);
                frmSua.CapNhatThanhCong += FillGridView;
                frmSua.CapNhatThanhCong += NhatKySua;
                frmSua.ShowDialog();
            }
        }