public void OnClanRemoveApply(IntPtr ptr, int nLen) { IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen); GameLogic.cmd_clan_remove_apply cmdHead = helper.get <GameLogic.cmd_clan_remove_apply>(); // 遍历 找到则删除 foreach (var item in listClanAcceptMember.DataSource) { if (cmdHead.nKinID == item.data.nKinID) { listClanAcceptMember.DataSource.Remove(item); break; } } }
public void ClanRemoveApply(int cmdID, int nParam, string strParam, IntPtr ptr, int nLen) { IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen); GameLogic.cmd_clan_remove_apply cmdHead = helper.get <GameLogic.cmd_clan_remove_apply>(); // 遍历 找到则删除 foreach (var item in m_clanApplyMemberData) { if (cmdHead.nKinID == item.nKinID) { m_clanApplyMemberData.Remove(item); break; } } UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CLAN_APPLY_MEMBER_TIP, null); UIMsgCmdData UIData = new UIMsgCmdData(cmdID, nParam, strParam, ptr, nLen); UIData.msgID = (int)WndMsgID.WND_MSG_CLAN_REMOVEAPPLY; UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CLAN_REMOVEAPPLY, UIData); }