protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
private void FrmProductMaintain_FormClosing(object sender, FormClosingEventArgs e) { dbContext.Dispose(); }