コード例 #1
0
        /// <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();
        }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: BharathMG/DesiSongs
        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;
        }
コード例 #3
0
        public async Task TestShowArtistGoesAheadWhenItCan()
        {
            ShowGigsTask task1 = new ShowGigsTask()
            {
                SearchTerms = TestTerm
            };
            await task1.Show();

            ShowGigsTask task2 = new ShowGigsTask();
            await task2.Show();

            Assert.Pass();
        }
コード例 #4
0
        public void TestShowArtistGoesAheadWhenItCan()
        {
            ShowGigsTask task1 = new ShowGigsTask()
            {
                SearchTerms = TestTerm
            };

            task1.Show();

            ShowGigsTask task2 = new ShowGigsTask();

            task2.Show();

            Assert.Pass();
        }
コード例 #5
0
        /// <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();
        }