/// <summary> /// 请求背包信息回调 /// </summary> /// <param name="obj"></param> void PlayerPropRequestCallBack(object obj) { if (obj is SCPlayerPropResponse) { SCPlayerPropResponse msg_prop_Res = obj as SCPlayerPropResponse; if (msg_prop_Res.ReponseStatus == null || msg_prop_Res.ReponseStatus.Code == 0) { m_curPropData = BagHelper.getPropData(msg_prop_Res.PlayerProps); m_recentPropData = BagHelper.getPropData(msg_prop_Res.RecentProps); if (m_page_toggle[(int)m_CurrentBagType].Checked) { changePageType((int)m_CurrentBagType, true); } else { m_page_toggle[(int)m_CurrentBagType].Checked = true; } } } else if (obj is SCPlayerPropRecentResposne) { SCPlayerPropRecentResposne msg_recentProp_Res = obj as SCPlayerPropRecentResposne; if (msg_recentProp_Res.ReponseStatus == null || msg_recentProp_Res.ReponseStatus.Code == 0) { m_needClearRecently = true; } } }
void RefreshProps() { m_curPropData = BagHelper.getPropData(GlobalInfo.MY_PLAYER_INFO.Bag_infos); m_recentPropData = BagHelper.getPropData(GlobalInfo.MY_PLAYER_INFO.Recent_Prop_infos); if (m_page_toggle[(int)m_CurrentBagType].Checked) { changePageType((int)m_CurrentBagType, true); } else { m_page_toggle[(int)m_CurrentBagType].Checked = true; } }