Exemplo n.º 1
0
 public SongResultBindingModel(
     string search,
     SongBindingModel result,
     string subtitle)
     : base(search, result.Title)
 {
     this.result   = result;
     this.subtitle = subtitle;
 }
Exemplo n.º 2
0
        public void SelectSongByIndex(int index)
        {
            if (this.Songs.Count <= index)
            {
                return;
            }

            if (index == -1)
            {
                this.ClearSelectedItems();
            }
            else
            {
                SongBindingModel selectedSong = this.Songs[index];
                if (!this.SelectedItems.Contains(selectedSong))
                {
                    this.SelectedItems.Add(selectedSong);
                }
            }
        }