private void Window_Closed(object sender, EventArgs e)
 {
     if (db != null)
     {
         db.Dispose();
     }
 }
示例#2
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_odb != null)
         {
             _odb.Dispose();
         }
     }
 }