Exemplo n.º 1
0
 private void PropertyBtn_Click(object sender, EventArgs e)
 {
     try
     {
         if (CameraCtrl.DeviceValid)
         {
             CameraCtrl.ShowPropertyDialog();
             CameraCtrl.SaveDeviceStateToFile("device.xml");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 2
0
        private void SettingBtn_Click(object sender, EventArgs e)
        {
            if (CameraCtrl.DeviceValid)
            {
                CameraCtrl.LiveStop();;
            }
            else
            {
                CameraCtrl.Device = "";
            }
            CameraCtrl.ShowDeviceSettingsDialog();

            if (CameraCtrl.DeviceValid)
            {
                // Save the currently used device into a file in order to be able to open it
                // automatically at the next program start.
                CameraCtrl.SaveDeviceStateToFile("device.xml");
            }
        }