コード例 #1
0
 protected override IIncrementalSource <HohoemaListingPageItemBase> GenerateIncrementalSource()
 {
     if (DisplayNicoRepoItemTopics.Count == 0)
     {
         DisplayNicoRepoItemTopics.Add(NicoRepoItemTopic.NicoVideo_User_Video_Upload);
     }
     return(new LoginUserNicoRepoTimelineSource(LoginUserNicoRepoProvider, SubscriptionManager, DisplayNicoRepoItemTopics));
 }
コード例 #2
0
        public override void OnNavigatingFrom(NavigatingFromEventArgs e, Dictionary <string, object> viewModelState, bool suspending)
        {
            // ニレコポ表示設定をニコレポの設定に書き戻し
            var saveTopics = DisplayNicoRepoItemTopics.Distinct().ToList();

            if (saveTopics.Count == 0)
            {
                saveTopics.Add(NicoRepoItemTopic.NicoVideo_User_Video_Upload);
            }
            ActivityFeedSettings.DisplayNicoRepoItemTopics = DisplayNicoRepoItemTopics.Distinct().ToList();
            ActivityFeedSettings.Save().ConfigureAwait(false);

            base.OnNavigatingFrom(e, viewModelState, suspending);
        }
コード例 #3
0
        public override void OnNavigatedFrom(INavigationParameters parameters)
        {
            // ニレコポ表示設定をニコレポの設定に書き戻し
            var saveTopics = DisplayNicoRepoItemTopics.Distinct().ToList();

            if (saveTopics.Count == 0)
            {
                saveTopics.Add(NicoRepoItemTopic.NicoVideo_User_Video_Upload);
            }
            ActivityFeedSettings.DisplayNicoRepoItemTopics = DisplayNicoRepoItemTopics.Distinct().ToList();
            ActivityFeedSettings.Save().ConfigureAwait(false);

            base.OnNavigatedFrom(parameters);
        }