public void show_Webcam_pictureTest() { PixelState.getInstance().set_pictureBox(new PictureBox()); WebcamController target = WebcamController.getInstance(); PictureBox webcamPictureBox = new PictureBox(); WebcamOptions form = null; target.show_Webcam_picture(webcamPictureBox, form); }
public void show_pictureTest() { PictureBox pic = new PictureBox(); PixelState.getInstance().set_pictureBox(pic); WebcamModel target = new WebcamModel(); Dictionary <int, string> devices = new Dictionary <int, string>(); Dictionary <int, string> solutions = new Dictionary <int, string>(); devices.Add(1, ""); solutions.Add(1, ""); WebcamOptions form = new WebcamOptions(devices, solutions); target.show_picture(pic, form); }