Ejemplo n.º 1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (e.Parameter is WaterfallPage.ListContent)
     {
         _ = loadContents();
         SearchResultList?.StopLoading();
     }
     else if (e.Parameter is ValueTuple <WaterfallPage.ListContent, int?> )
     {
         resultFrame.Navigate(typeof(WaterfallPage), e.Parameter);
         grdSearchPanel.Visibility = Visibility.Collapsed;
         if (txtWord.Text.Trim() != lastWord || cbSearchTarget.SelectedIndex != lastSearchTarget ||
             cbSort.SelectedIndex != lastSort || cbDuration.SelectedIndex != lastDuration)
         {
             lastWord         = txtWord.Text.Trim();
             lastSearchTarget = cbSearchTarget.SelectedIndex;
             lastSort         = cbSort.SelectedIndex;
             lastDuration     = cbDuration.SelectedIndex;
         }
     }
     ((Frame.Parent as Grid)?.Parent as MainPage)?.SelectNavPlaceholder(GetResourceString("SearchPagePlain"));
 }
Ejemplo n.º 2
0
 public static void RefreshSearchResultList(SearchParam param)
 {
     SearchResultList?.StopLoading();
     SearchResultList = new SearchResultIllustsCollection(param.Word, param.SearchTarget, param.Sort, param.Duration);
 }