Example #1
0
 public void Dispose()
 {
     if (this.parent != null)
     {
         this.parent.EndIgnoreEvents();
         this.parent = null;
     }
     GC.SuppressFinalize(this);
 }
 public void Dispose()
 {
     if (this.parent != null)
     {
         this.parent.EndIgnoreEvents();
         this.parent = null;
     }
     GC.SuppressFinalize(this);
 }
 public IgnoreViewEventsHelper(EnumerableCollectionView parent)
 {
     this.parent = parent;
     this.parent.BeginIgnoreEvents();
 }
Example #4
0
 public IgnoreViewEventsHelper(EnumerableCollectionView parent)
 {
     this.parent = parent;
     this.parent.BeginIgnoreEvents();
 }
Example #5
0
        private void EndIgnoreEvents()
        {
            EnumerableCollectionView enumerableCollectionView = this;

            enumerableCollectionView.ignoreEventsLevel = enumerableCollectionView.ignoreEventsLevel - 1;
        }
Example #6
0
        private void BeginIgnoreEvents()
        {
            EnumerableCollectionView enumerableCollectionView = this;

            enumerableCollectionView.ignoreEventsLevel = enumerableCollectionView.ignoreEventsLevel + 1;
        }