Пример #1
0
        public void Pause()
        {
            if (_mitem != null && this.Status == PreviewPlayerStatus.Running)
            {
                _mplaylist.FilePlayPause(0.0);

                this.Status = PreviewPlayerStatus.Paused;
            }
        }
Пример #2
0
 private void Play_btn_Click(object sender, EventArgs e)
 {
     if (flagStart == 0)
     {
         m_objPlaylist.FilePlayStart();
         Play_btn.Text      = "Pause";
         flagStart          = 1;
         Play_btn.BackColor = Color.Red;
     }
     else if (flagStart == 1)
     {
         m_objPlaylist.FilePlayPause(0);
         Play_btn.Text      = "Play";
         flagStart          = 0;
         Play_btn.BackColor = Color.Green;
     }
 }
 private void button4_Click(object sender, EventArgs e)
 {
     myPlaylist.FilePlayPause(0);
 }