Пример #1
0
        private void BtnThem_Click(object sender, EventArgs e)
        {
            frmThemNhaCungCap frmthem = new frmThemNhaCungCap();

            frmthem.ThemThanhCong += FillGridView;
            frmthem.ThemThanhCong += NhatKyThem;
            frmthem.ShowDialog();
        }
Пример #2
0
        private void BtnSua_Click(object sender, EventArgs e)
        {
            if (CurRowIndex >= 0)
            {
                NhaCC ncc = LayNCCDangChon();

                frmThemNhaCungCap frmSua = new frmThemNhaCungCap(ncc);
                frmSua.CapNhatThanhCong += FillGridView;
                frmSua.CapNhatThanhCong += NhatKySua;
                frmSua.ShowDialog();
            }
        }