示例#1
0
    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();
    }
示例#2
0
    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);
    }
示例#3
0
    public void ApplicantDetailInfo(IUIObject obj)
    {
        NewGuildApplicant newGuildApplicant = obj.Data as NewGuildApplicant;

        if (newGuildApplicant == null)
        {
            return;
        }
        GS_OTHERCHAR_INFO_PERMIT_REQ gS_OTHERCHAR_INFO_PERMIT_REQ = new GS_OTHERCHAR_INFO_PERMIT_REQ();

        gS_OTHERCHAR_INFO_PERMIT_REQ.nPersonID = newGuildApplicant.GetPersonID();
        TKString.StringChar(newGuildApplicant.GetCharName().Trim(), ref gS_OTHERCHAR_INFO_PERMIT_REQ.szCharName);
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_OTHERCHAR_INFO_PERMIT_REQ, gS_OTHERCHAR_INFO_PERMIT_REQ);
    }
示例#4
0
    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);
    }
示例#5
0
    public void AddApplicantInfo(NEWGUILDMEMBER_APPLICANT_INFO NewGuildApplicantInfo)
    {
        NewGuildApplicant item = new NewGuildApplicant(NewGuildApplicantInfo);

        this.m_NewGuildApplicantList.Add(item);
    }