Пример #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #2
0
 private void Window_Closed(object sender, EventArgs e)
 {
     context.Dispose();
 }