private void SunButtonClick(object sender, RoutedEventArgs e) { subject_list = collect_list[7]; SubjectListControl.SwitchList(ref subject_list); NavigationListView.SelectedItem = ((Button)sender).Parent; return; }
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); }
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; }
public void Switch(ref List <Model.Collection> ref_ordered_collects) { SubjectListControl.SwitchList(ref ref_ordered_collects); }