public void Dispose() { if (_context != null) { _context.Dispose(); } //GC.SuppressFinalize(this); }
private void Form2_FormClosing(object sender, FormClosingEventArgs e) { _context.Dispose(); }