Пример #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #2
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             db.Dispose();
         }
         this.disposed = true;
     }
 }
Пример #3
0
 private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     mdb.Dispose();
 }
Пример #4
0
 /// <summary>
 /// 销毁对象
 /// </summary>
 public void Dispose()
 {
     _db.Dispose();
 }