示例#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();
 }
示例#4
0
 public IgnoreViewEventsHelper(EnumerableCollectionView parent)
 {
     this.parent = parent;
     this.parent.BeginIgnoreEvents();
 }
示例#5
0
        private void EndIgnoreEvents()
        {
            EnumerableCollectionView enumerableCollectionView = this;

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

            enumerableCollectionView.ignoreEventsLevel = enumerableCollectionView.ignoreEventsLevel + 1;
        }