示例#1
0
 private void Camera_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (camera.DeviceExist)
     {
         if (camera.CloseVideo())
         {
             btnphotograph.Enabled = false;
         }
     }
     if (camera.DeviceExist)
     {
         camera.CloseVideo();
     }
     this.Dispose();
 }