private void backgroundWorkerAccont_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { mResult = Operation_CS.GetResult(m_ClientEvent, CEnum.ServiceKey.RC_RcUser_Query, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerAccont_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { BtnSearch.Enabled = true; Cursor = Cursors.Default; if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } else { Operation_CS.BuildDataTable(m_ClientEvent, mResult, RoleInfoView, out iPageCount); } }