public TimelineListCoreViewModel(TabViewModel parent, IEnumerable<IFilter> sources) { if (parent == null) throw new ArgumentNullException("parent"); this._tweetsSource = new CachedConcurrentObservableCollection<TabDependentTweetViewModel>(); this.Parent = parent; this.sources = sources; UpdateReacceptionChain(sources, true); // binding nortifications ViewModelHelper.BindNotification(TweetStorage.TweetStorageChangedEvent, this, TweetStorageChanged); ViewModelHelper.BindNotification(Setting.SettingValueChangedEvent, this, SettingValueChanged); // Generate timeline Task.Factory.StartNew(() => this.InvalidateCache()); }
public TimelineListCoreViewModel(TabViewModel parent, IEnumerable <IFilter> sources) { if (parent == null) { throw new ArgumentNullException("parent"); } this._tweetsSource = new CachedConcurrentObservableCollection <TabDependentTweetViewModel>(); this.Parent = parent; this.sources = sources; UpdateReacceptionChain(sources, true); // binding nortifications ViewModelHelper.BindNotification(TweetStorage.TweetStorageChangedEvent, this, TweetStorageChanged); ViewModelHelper.BindNotification(Setting.SettingValueChangedEvent, this, SettingValueChanged); // Generate timeline Task.Factory.StartNew(() => this.InvalidateCache()); }