/// <summary> /// Launches show gigs task with a search term. /// </summary> /// <param name="sender">Search Gigs Task button</param> /// <param name="e">Event arguments</param> private void SearchGigsTask(object sender, RoutedEventArgs e) { ShowGigsTask task = new ShowGigsTask(); task.SearchTerms = "New York"; task.Show(); }
private void listItemClicked(object sender, SelectionChangedEventArgs e) { ListBox list = sender as ListBox; switch (list.SelectedIndex) { case 0: { NavigationService.Navigate(new Uri("/Page1.xaml", UriKind.Relative)); break; } case 1: { NavigationService.Navigate(new Uri("/Songs.xaml", UriKind.Relative)); break; } case 2: { NavigationService.Navigate(new Uri("/Mix.xaml", UriKind.Relative)); break; } case 3: { ShowGigsTask task = new ShowGigsTask(); task.Show(); break; } } list.SelectedIndex = -1; }
public async Task TestShowArtistGoesAheadWhenItCan() { ShowGigsTask task1 = new ShowGigsTask() { SearchTerms = TestTerm }; await task1.Show(); ShowGigsTask task2 = new ShowGigsTask(); await task2.Show(); Assert.Pass(); }
public void TestShowArtistGoesAheadWhenItCan() { ShowGigsTask task1 = new ShowGigsTask() { SearchTerms = TestTerm }; task1.Show(); ShowGigsTask task2 = new ShowGigsTask(); task2.Show(); Assert.Pass(); }
/// <summary> /// Launches show gigs task. /// </summary> /// <param name="sender">Show Gigs Task button</param> /// <param name="e">Event arguments</param> private void ShowGigsTask(object sender, RoutedEventArgs e) { ShowGigsTask task = new ShowGigsTask(); task.Show(); }