private void stopCameraThenOpenFileDialog()
        {
            var confirmText  = Hanbo.Resources.Resource.Message_ImageAcquitionStopNotice;
            var confirmTitle = Hanbo.Resources.Resource.Message_Notice;
            var cameraStopActionConfirmed = MessageBox.Show(confirmText, confirmTitle, MessageBoxButtons.YesNo) == DialogResult.Yes;

            if (cameraStopActionConfirmed)
            {
                _grabImageWorkingMan.Cancel();
            }
            else
            {
                _openImageFlag = false;
            }
        }
示例#2
0
 /// <summary>
 /// 釋放 CCD 資源
 /// </summary>
 public static void ReleaseGrabImageWorkingManInstance()
 {
     _grabImageManInstanceUsed = false;
     if (_grabImageWorkingMan is PylonGrabImageWorkingMan)
     {
         _grabImageWorkingMan.Cancel();
     }
 }