예제 #1
0
 public void Open(SearchMessage msg)
 {
     if (msg != null)
     {
         this.Artist = msg.Artist;
         this.Title = msg.Title;
     }
     this.IsOpen = true;
 }
예제 #2
0
 public void Go()
 {
     IsOpen = false;
     var msg = new SearchMessage() { Artist = this.Artist, Title = this.Title };
     MessengerInstance.Send(msg, 1);
 }
예제 #3
0
 public void OnSearch(SearchMessage message)
 {
     if (message != null)
     { 
         var playlistData = SearchYouTube(message.Artist, message.Title);
         this.UpdatePlaylist(_service, playlistData, 0);
     }
 }