예제 #1
0
 public Form1(string id)
 {
     try {
         InitializeComponent();
         bntVideoFormat.Visible = false;
         bntVideoSource.Visible = false;
         ID     = id;
         webcam = new WebCam();
         webcam.InitializeWebCam(ref imgVideo);
         webcam.Start();
     }
     catch { MessageBox.Show("the camera could not start, plz advise the secretary or an instructor");
             Close(); }
 }
예제 #2
0
 private void mainWinForm_Load(object sender, EventArgs e)
 {
     webcam = new WebCam();
     webcam.InitializeWebCam(ref imgVideo);
 }