예제 #1
0
        private void audio_pause_Click(object sender, EventArgs e)
        {
            if (vid != null)
            {
                audio_play.Enabled  = true;
                audio_play.Visible  = true;
                audio_stop.Enabled  = true;
                audio_stop.Visible  = true;
                audio_pause.Enabled = false;
                audio_pause.Visible = false;

                Video_Timer_Enable = false;
                vid.Pause();
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: 4XPG/susdulukripto
 private void button5_Click(object sender, EventArgs e)
 {
     if (video.State == StateFlags.Running)
     {
         video.Pause();
     }
 }
예제 #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (video.Playing)
     {
         button1.Text = "Играть";
         video.Pause();
     }
     else
     {
         button1.Text = "Пауза";
         video.Play();
     }
 }
예제 #4
0
 public void Pause()
 {
     if (checkInit())
     {
         if (isVideo)
         {
             _video.Pause();
         }
         else
         {
             _audio.Pause();
         }
     }
 }