Beispiel #1
0
 private void screenViewer2Button_Click(object sender, EventArgs e)
 {
     CWViewer2 = new ChildWindow(this.videoSource2Selection.SelectedIndex, 2, this);
     CWViewer2.SetSources(videoSourcePlayer2.VideoSource,
         new VideoSourcePlayer.NewFrameHandler(this.videoSourcePlayer2_NewFrame),
         new FormClosedEventHandler(ChildWindow2_FormClosed));
     this.videoSourcePlayer2.VideoSource = null;
     CWViewer2.Show(this);
 }
Beispiel #2
0
 private void ChildWindow2_FormClosed(object sender, FormClosedEventArgs e)
 {
     //this.videoSourcePlayer2.VideoSource = cameraUSB;
     this.videoSourcePlayer2.VideoSource = currentVideoSource;
     CWViewer2.Dispose();
     CWViewer2 = null;
 }