/// <summary> /// 构造函数 /// </summary> /// <param name="mainform">主窗口</param> public BVCUSdkOperator(MainWinForm mainform) { m_mainForm = mainform; BVCU.FAILED(BVCU.ManagedLayer_CuInit(ref m_bvcuSdkHandle));//初始化库 m_eventHandler = new EventHandler(); m_session = new Session(m_bvcuSdkHandle, m_eventHandler, m_mainForm); m_dialog = new Dialog(m_bvcuSdkHandle, m_eventHandler, m_mainForm, m_session); m_eventHandler.init(m_bvcuSdkHandle, m_session, m_dialog); m_session.SetBVCUSdk(this); }