Beispiel #1
0
        private void SyncCollectionView()
        {
            DisposeCollection();
            IsGroupedMode = ServiceContainer.Resolve <ISettingsStore> ().GroupedTimeEntries;

            collectionFeed = new TimeEntriesFeed();
            Collection     = IsGroupedMode
                         ? (ICollectionData <IHolder>) new TimeEntriesCollection <TimeEntryGroup> (collectionFeed)
                         : new TimeEntriesCollection <TimeEntryHolder> (collectionFeed);
        }
        private void SyncCollectionView()
        {
            DisposeCollection();
            IsGroupedMode = ServiceContainer.Resolve <ISettingsStore> ().GroupedTimeEntries;

            collectionFeed = new TimeEntriesFeed();
            Collection     = IsGroupedMode
                         ?        (ObservableCollection <IHolder>) new TimeEntriesCollection <TimeEntryGroup> (collectionFeed, 150)
                         : new TimeEntriesCollection <TimeEntryHolder> (collectionFeed, 150);
            Collection.CollectionChanged += OnDetectHasItems;
        }
        private void DisposeCollection ()
        {
            if (collectionFeed != null) {
                collectionFeed.Dispose ();
                collectionFeed = null;
            }

            if (Collection != null) {
                Collection.Dispose ();
                Collection = null;
            }
        }
        private void SyncCollectionView ()
        {
            DisposeCollection ();
            IsGroupedMode = ServiceContainer.Resolve<ISettingsStore> ().GroupedTimeEntries;

            collectionFeed = new TimeEntriesFeed ();
            Collection = IsGroupedMode
                         ?        (ObservableCollection<IHolder>)new TimeEntriesCollection<TimeEntryGroup> (collectionFeed, 150)
                         : new TimeEntriesCollection<TimeEntryHolder> (collectionFeed, 150);
            Collection.CollectionChanged += OnDetectHasItems;
        }
        private void SyncCollectionView ()
        {
            DisposeCollection ();
            IsGroupedMode = ServiceContainer.Resolve<ISettingsStore> ().GroupedTimeEntries;

            collectionFeed = new TimeEntriesFeed ();
            var col = new TimeEntriesCollection (collectionFeed, IsGroupedMode);
            Collection = col;
        }
        private void SyncCollectionView ()
        {
            DisposeCollection ();
            IsGroupedMode = ServiceContainer.Resolve<ISettingsStore> ().GroupedTimeEntries;

            collectionFeed = new TimeEntriesFeed ();
            Collection = IsGroupedMode
                         ? (ICollectionData<IHolder>)new TimeEntriesCollection<TimeEntryGroup> (collectionFeed)
                         : new TimeEntriesCollection<TimeEntryHolder> (collectionFeed);
        }