/**************************************************************** ** 函 数 名:RefGridSession ** 功能描述:刷新网格信息 ** 输入参数:无 ** 输出参数:无 ** 返 回 值:无 ** 创 建 人:陶志强 ** 日 期:2013-4-21 ** 修 改 人: ** 日 期: ****************************************************************/ private void RefGridSession() { PanelStatus.Text = "正在取得数据..."; GridHuman.Visible = false; GridHuman.Items.Clear(); int i = 1; foreach (TPlayObject PlayObject in ViewList) { if (PlayObject != null) { ListViewItem lvItem = GridHuman.Items.Add(i.ToString()); lvItem.SubItems.Add(PlayObject.m_sCharName); lvItem.SubItems.Add(HUtil32.IntToSex(PlayObject.m_btGender)); lvItem.SubItems.Add(HUtil32.IntToJob(PlayObject.m_btJob)); lvItem.SubItems.Add((PlayObject.m_Abil.Level).ToString()); lvItem.SubItems.Add((PlayObject.m_NGLevel).ToString()); lvItem.SubItems.Add(PlayObject.m_sMapName); lvItem.SubItems.Add((PlayObject.m_nCurrX).ToString() + ":" + (PlayObject.m_nCurrY).ToString()); lvItem.SubItems.Add(PlayObject.m_sUserID); lvItem.SubItems.Add(PlayObject.m_sIPaddr); lvItem.SubItems.Add((PlayObject.m_btPermission).ToString()); lvItem.SubItems.Add(PlayObject.m_sIPLocal); lvItem.SubItems.Add((PlayObject.m_nGameGold).ToString()); lvItem.SubItems.Add((PlayObject.m_nGamePoint).ToString()); lvItem.SubItems.Add((PlayObject.m_nPayMentPoint).ToString()); lvItem.SubItems.Add(HUtil32.BooleanToStr(PlayObject.m_boNotOnlineAddExp)); lvItem.SubItems.Add(PlayObject.m_sAutoSendMsg); lvItem.SubItems.Add((PlayObject.MessageCount()).ToString()); lvItem.SubItems.Add((PlayObject.m_nGAMEDIAMOND).ToString()); lvItem.SubItems.Add((PlayObject.m_nGAMEGIRD).ToString()); i++; } } GridHuman.Visible = true; }