Exemplo n.º 1
0
        public void DoLoadAndPlay(IEnumerable <string> items)
        {
            var needplay = false;

            if (PlayList.Count < 1)
            {
                needplay = true;
            }
            PlayList.DoLoad(items);
            if (needplay)
            {
                PlayList.NextTrack();
                StartPlay();
            }
            else
            {
                Dispatcher.Invoke(() => { MainView.SelectedIndex = 1; });
            }
            DoBringIntoView();
        }