public DispatchedObservableCollection(object collection)
        {
            this.asyncCollection = (IEnumerable)collection;
            this.list = new List<object>();
            this.pendingChanges = new List<NotifyCollectionChangedEventArgs>();
            this.dispatcher = new UIActionDispatcher();

            foreach (var item in this.asyncCollection)
            {
                this.list.Add(item);
            }
            ((INotifyCollectionChanged)collection).CollectionChanged += this.AsyncCollection_CollectionChanged;
        }
        public DispatchedObservableCollection(object collection)
        {
            this.asyncCollection = (IEnumerable)collection;
            this.list            = new List <object>();
            this.pendingChanges  = new List <NotifyCollectionChangedEventArgs>();
            this.dispatcher      = new UIActionDispatcher();

            foreach (var item in this.asyncCollection)
            {
                this.list.Add(item);
            }
            ((INotifyCollectionChanged)collection).CollectionChanged += this.AsyncCollection_CollectionChanged;
        }
 public DispatchedViewModelBase()
 {
     this.propertyNamesSet = new HashSet<string>();
     this.dispatcher = new UIActionDispatcher();
 }
 public DispatchedViewModelBase()
 {
     this.propertyNamesSet = new HashSet <string>();
     this.dispatcher       = new UIActionDispatcher();
 }