public override bool Open() { try { ImageCreat(); ContinuousShotStop();//设置为软触发模式 MVGigE.MVSetStrobeSource(m_hCam, MVAPI.LineSourceEnums.LineSource_ExposureActive); StreamCBDelegate += new MVAPI.MV_SNAPPROC(StreamCB); MVGigE.MVStartGrab(m_hCam, StreamCBDelegate, IntPtr.Zero); GetCameraSettingData(); IsLink = true; //} //else //{ // Util.Notify("无相机连接"); // return false; //} } catch (Exception ex) { Util.WriteLog(this.GetType(), ex); Util.Notify("相机打开出现异常"); throw ex; } return(true); }