private string GetInvitePerson_Explain(eFRIEND_INVITETYPE _invite_type) { string result = string.Empty; string text = string.Empty; switch (_invite_type) { case eFRIEND_INVITETYPE.eINVITETYPE_FRIENDOFFRIEND: { StringBuilder stringBuilder = new StringBuilder(512); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("145"); stringBuilder.Append(text); stringBuilder.Append("\n"); List <INIVITEPERSON_FRIENDINFO> list_InvitePerson_FriendList = this.pInvite_personinfo.list_InvitePerson_FriendList; for (int i = 0; i < list_InvitePerson_FriendList.Count; i++) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("146"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { text, "username", TKString.NEWString(list_InvitePerson_FriendList[i].InviteName) }); stringBuilder.Append(text); stringBuilder.Append("\n"); } result = stringBuilder.ToString(); break; } case eFRIEND_INVITETYPE.eINVITETYPE_SAMELEVEL: result = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("148"); break; case eFRIEND_INVITETYPE.eINVITETYPE_SIMILARLEVEL: result = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("150"); break; case eFRIEND_INVITETYPE.eINVITETYPE_RND: text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("151"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref result, new object[] { text, "username", this.pInvite_personinfo.Invite_UserName }); break; } return(result); }
public void Set(INVITE_PERSONINFO info) { this.eInvte_type = info.eInvte_type; this.Invite_PersonID = info.Invite_PersonID; this.Invite_PersonLevel = info.Invite_PersonLevel; this.Invite_PersonFaceCharKind = info.Invite_PersonFaceCharKind; this.Invite_UserName = info.Invite_UserName; this.Invite_User_InfoMsg = info.Invite_User_InfoMsg; foreach (INIVITEPERSON_FRIENDINFO current in info.list_InvitePerson_FriendList) { this.list_InvitePerson_FriendList.Add(current); } }