Пример #1
0
        public void PlayFromString(string path)
        {
            this.source_ = path;

            MediaItem item = MediaItem.Create(path);

            if (item != null)
            {
                PlaylistBox.Items.Clear();
                PlaylistBox.Items.Add(item);
                ResetIndexLecture();
                SelectIndexLecture(0);
                this.state_ = State.STOP;
                PlaylistBox_SourceUpdated();
                MediaPlayer.Stop();
                this.state_ = State.STOP;
                this.ButtonPlay_Click(null, null);
            }
        }