Example #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
 private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     context.Dispose();
 }