public cls_capture_pintures(View.Frm_capture_pintures _f_capt_pin) { videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice); _frm_capture_pinture = _f_capt_pin; _met_event_click(); videoSource = new VideoCaptureDevice(); if (videoSource.IsRunning) { videoSource.Stop(); _frm_capture_pinture.pictureBoxOutput.Image = null; _frm_capture_pinture.pictureBoxOutput.Invalidate(); } else { videoSource = new VideoCaptureDevice(videoDevices[1].MonikerString); videoSource.NewFrame += videoSource_NewFrame; videoSource.Start(); } }
private void _met_event_click_btn_fote(object sender, EventArgs e) { View.Frm_capture_pintures _frm_capture = new View.Frm_capture_pintures(); Controller.cls_capture_pintures _cont_cap = new cls_capture_pintures(_frm_capture); _frm_capture.Show(); }