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 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); }