public void ClickApproval(object EventObject) { if (null == this.m_nlbApllicant.SelectedItem) { return; } NewGuildApplicant applicantInfoFromIndex = NrTSingleton <NewGuildManager> .Instance.GetApplicantInfoFromIndex(this.m_nlbApllicant.SelectedItem.GetIndex()); if (applicantInfoFromIndex == null) { return; } if (!NrTSingleton <NewGuildManager> .Instance.IsAddMember()) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("316"), SYSTEM_MESSAGE_TYPE.ADMIN_SYSTEM_MESSAGE); return; } GS_NEWGUILD_MEMBER_JOIN_REQ gS_NEWGUILD_MEMBER_JOIN_REQ = new GS_NEWGUILD_MEMBER_JOIN_REQ(); gS_NEWGUILD_MEMBER_JOIN_REQ.bApprove = true; gS_NEWGUILD_MEMBER_JOIN_REQ.i64PersonID_NewMember = applicantInfoFromIndex.GetPersonID(); gS_NEWGUILD_MEMBER_JOIN_REQ.i16Level = applicantInfoFromIndex.GetLevel(); TKString.StringChar(applicantInfoFromIndex.GetCharName(), ref gS_NEWGUILD_MEMBER_JOIN_REQ.strName_NewMember); SendPacket.GetInstance().SendObject(1811, gS_NEWGUILD_MEMBER_JOIN_REQ); }
public void RefreshInfo() { this.m_nlbApllicant.Clear(); for (int i = 0; i < NrTSingleton <NewGuildManager> .Instance.GetApplicantCount(); i++) { NewGuildApplicant applicantInfoFromIndex = NrTSingleton <NewGuildManager> .Instance.GetApplicantInfoFromIndex(i); if (applicantInfoFromIndex != null) { NewListItem newListItem = new NewListItem(this.m_nlbApllicant.ColumnNum, true, string.Empty); string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1639"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromInterface, new object[] { textFromInterface, "count", applicantInfoFromIndex.GetLevel(), "targetname", applicantInfoFromIndex.GetCharName() }); newListItem.SetListItemData(0, textFromInterface, null, null, null); newListItem.SetListItemData(1, string.Empty, applicantInfoFromIndex, new EZValueChangedDelegate(this.ApplicantDetailInfo), null); newListItem.SetListItemData(2, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("318"), applicantInfoFromIndex, new EZValueChangedDelegate(this.ClickReject), null); newListItem.SetListItemData(3, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("317"), applicantInfoFromIndex, new EZValueChangedDelegate(this.ClickApproval), null); newListItem.Data = applicantInfoFromIndex; this.m_nlbApllicant.Add(newListItem); } } this.m_nlbApllicant.RepositionItems(); this.WaitCount(); }
public void ClickReject(object EventObject) { if (null == this.m_nlbApllicant.SelectedItem) { return; } NewGuildApplicant applicantInfoFromIndex = NrTSingleton <NewGuildManager> .Instance.GetApplicantInfoFromIndex(this.m_nlbApllicant.SelectedItem.GetIndex()); if (applicantInfoFromIndex == null) { return; } GS_NEWGUILD_MEMBER_JOIN_REQ gS_NEWGUILD_MEMBER_JOIN_REQ = new GS_NEWGUILD_MEMBER_JOIN_REQ(); gS_NEWGUILD_MEMBER_JOIN_REQ.bApprove = false; gS_NEWGUILD_MEMBER_JOIN_REQ.i64PersonID_NewMember = applicantInfoFromIndex.GetPersonID(); gS_NEWGUILD_MEMBER_JOIN_REQ.i16Level = applicantInfoFromIndex.GetLevel(); TKString.StringChar(applicantInfoFromIndex.GetCharName(), ref gS_NEWGUILD_MEMBER_JOIN_REQ.strName_NewMember); SendPacket.GetInstance().SendObject(1811, gS_NEWGUILD_MEMBER_JOIN_REQ); }