Ejemplo n.º 1
0
 private void SearchSongRequested()
 {
     if (!tb_SongTitle.Text.Equals(string.Empty))
     {
         m_ModelView.SearchTrack(tb_SongTitle.Text, tb_SongArtist.Text);
     }
 }
Ejemplo n.º 2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            BackButton.IsEnabled = true;

            if (e.Parameter is LastFM_MV)
            {
                m_ModelView                  = e.Parameter as LastFM_MV;
                m_ModelView.Model            = new LastFMModel();
                m_ModelView.PropertyChanged += ModelView_PropertyChanged;
                m_ModelView.OnDisplay        = true;
                m_ModelView.SongUpdated      = false;
                UpdateCurrentInfo();
                UpdateSearchInfo();
                m_ModelView.SearchTrack();
                LW_Tracks.ItemsSource = m_ModelView.Tracks;
            }
            base.OnNavigatedTo(e);
        }