static void Open(WebCam webCan) { webCan.Start(); //MJPEGStream mjpegSource = new MJPEGStream(); //mjpegSource.VideoSource = CameraIp; //OpenVideoSource(mjpegSource); }
public static void OnOpsCamera(object obj, bool isChecked, WebCam webCan) { if (isChecked) { Open(webCan); } else { Stop(webCan); } }
static void Stop(WebCam webCan) { webCan.Stop(); }