protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
private void Window_Closed(object sender, EventArgs e) { context.Dispose(); }