Exemplo n.º 1
0
        private void BtnThem_Click(object sender, EventArgs e)
        {
            frmThemTyGia frmthem = new frmThemTyGia();

            frmthem.ThemThanhCong += FillGridView;
            frmthem.ThemThanhCong += NhatKyThem;
            frmthem.ShowDialog();
        }
Exemplo n.º 2
0
        private void BtnSua_Click(object sender, EventArgs e)
        {
            if (CurRowIndex >= 0)
            {
                TyGia tg = LayTGDangChon();

                frmThemTyGia frmSua = new frmThemTyGia(tg);
                frmSua.CapNhatThanhCong += FillGridView;
                frmSua.CapNhatThanhCong += NhatKySua;
                frmSua.ShowDialog();
            }
        }