Ejemplo n.º 1
0
 private void MainFormFormClosing(object sender, FormClosingEventArgs e)
 {
     if (videoPlay != null)
     {
         videoPlay.Dispose();
         videoPlay = null;
     }
 }
Ejemplo n.º 2
0
 private void MainFormFormClosing(object sender, FormClosingEventArgs e)
 {
     if (videoPlay != null)
     {
         videoPlay.Dispose();
         videoPlay = null;
     }
 }
Ejemplo n.º 3
0
        private void BtnStartClick(object sender, EventArgs e)
        {
            if (videoPlay == null)
            {
                videoPlay = new VideoPlay(panelWindow);
                videoPlay.Start();

                btnStart.Text = "Stop";
            }
            else
            {
                btnStart.Text = "Start";

                videoPlay.Dispose();
                videoPlay = null;
            }
        }
Ejemplo n.º 4
0
        private void BtnStartClick(object sender, EventArgs e)
        {
            if (videoPlay == null)
            {
                videoPlay = new VideoPlay(panelWindow);
                videoPlay.Start();

                btnStart.Text = "Stop";
            }
            else
            {
                btnStart.Text = "Start";

                videoPlay.Dispose();
                videoPlay = null;
            }
        }