Exemplo n.º 1
0
 /// <summary>
 /// Launches search task.
 /// </summary>
 /// <param name="sender">Search Task button</param>
 /// <param name="e">Event arguments</param>
 private void ShowSearchTask(object sender, RoutedEventArgs e)
 {
     MusicSearchTask task = new MusicSearchTask();
     task.SearchTerms = "Muse";
     task.Show();
 }
 public void TestSearchGoesAheadWhenItCan()
 {
     MusicSearchTask task = new MusicSearchTask() { SearchTerms = TestTerm };
     task.Show();
 }
 public void TestSearchTermPropertyIsRequired()
 {
     MusicSearchTask task = new MusicSearchTask();
     task.Show();
 }
 public void TestSearchTermPropertyPersists()
 {
     MusicSearchTask task = new MusicSearchTask() { SearchTerms = TestTerm };
     Assert.AreEqual(TestTerm, task.SearchTerms, "Expected the same term");
 }
Exemplo n.º 5
0
 private void searchMusic(object sender, RoutedEventArgs e)
 {
     MusicSearchTask task = new MusicSearchTask();
     task.SearchTerms = MusicTextBox.Text;
     task.Show();
 }
Exemplo n.º 6
0
 /// <summary>
 ///     Launches search music task.
 /// </summary>
 /// <param name="searchTerm">The search terms</param>
 static public void LaunchSearch(string searchTerm)
 {
     var task = new MusicSearchTask { SearchTerms = searchTerm };
     task.Show();
 }