コード例 #1
0
 private void MainFormFormClosing(object sender, FormClosingEventArgs e)
 {
     if (videoPlay != null)
     {
         videoPlay.Dispose();
         videoPlay = null;
     }
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: markTwen/TStreamSource
 private void MainFormFormClosing(object sender, FormClosingEventArgs e)
 {
     if (videoPlay != null)
     {
         videoPlay.Dispose();
         videoPlay = null;
     }
 }
コード例 #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;
            }
        }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: markTwen/TStreamSource
        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;
            }
        }