예제 #1
0
 private void SunButtonClick(object sender, RoutedEventArgs e)
 {
     subject_list = collect_list[7];
     SubjectListControl.SwitchList(ref subject_list);
     NavigationListView.SelectedItem = ((Button)sender).Parent;
     return;
 }
예제 #2
0
 private async void SearchButtonClick(object sender, RoutedEventArgs e)
 {
     subject_list = new List <Model.Collection>();
     Model.SearchCollection search_collection = new Model.SearchCollection();
     try
     {
         search_collection = await Retry.Do(() => ApiHelper.GetSearch(KeywordTextBox.Text), TimeSpan.FromSeconds(3));
     }
     catch (WebException web_exception)
     {
         Console.WriteLine(web_exception.Message);
     }
     catch (AuthorizationException authorization_exception)
     {
         Console.WriteLine(authorization_exception.Message);
     }
     catch (EmptySearchException empty_search_exception)
     {
         Console.WriteLine(empty_search_exception.Message);
         return;
     }
     foreach (var s in search_collection.list)
     {
         subject_list.Add(new Model.Collection(s));
     }
     SubjectListControl.SwitchList(ref subject_list);
 }
예제 #3
0
 public void Switch(ref Dictionary <uint, List <Model.Collection> > ref_ordered_collects)
 {
     collect_list = ref_ordered_collects;
     subject_list = collect_list[7];
     SubjectListControl.SwitchList(ref subject_list);
     NavigationListView.SelectedItem = SunButton.Parent;
     return;
 }
예제 #4
0
 public void Switch(ref List <Model.Collection> ref_ordered_collects)
 {
     SubjectListControl.SwitchList(ref ref_ordered_collects);
 }