public void OnLoginOk() { if (delegateOnLoginOk == null) { delegateOnLoginOk = new DelegateOnLoginOk(procOnLoginOk); } // 回调函数内部不能直接发送命令,否则会引起回调死锁 m_mainForm.BeginInvoke(delegateOnLoginOk); }
public void OnOpenDialogFailed(IntPtr dialogHandle) { m_bvsdkEventHandler.showMessageBoxOnEvent(m_mainForm, "打开预览失败"); m_mainForm.BeginInvoke(openDialogFailed, new object[] { dialogHandle }); }