예제 #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (dataView != null)
                {
                    var sourceView = dataView.Source as IDisposable;
                    if (sourceView != null)
                    {
                        sourceView.Dispose();
                    }

                    dataView.Dispose();
                    dataView = null;
                }
            }
            base.Dispose(disposing);
        }
예제 #2
0
 public BaseDataViewAdapter(IDataView <T> dataView)
 {
     this.dataView          = new CachingDataView <T> (dataView);
     this.dataView.Updated += OnDataViewUpdated;
 }