Exemplo n.º 1
0
 public BVCUSDKOperator(Form1 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);
 }
Exemplo n.º 2
0
        /// <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);
        }