Esempio n. 1
0
        public void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                SetGeometryContext();
                try
                {
                    _shapeGeometryTransaction.Dispose();
                }
                finally
                {
                    ResetGeometryContext();
                }

                SetInstanceContext();
                try
                {
                    _shapeInstanceTransaction.Dispose();
                }
                finally
                {
                    ResetInstanceContext();
                }
            }
            _disposed = true;
        }
Esempio n. 2
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (InTransaction)
         {
             ((ITransaction)this).RollBack();
             _readWriteTransaction.Dispose();
         }
         _undoActions.Clear();
     }
     finally
     {
         InTransaction = false;
         base.Dispose(disposing);
     }
 }