private bool _CheckOverlapNameSupporter() { this.m_strLocalName = this.m_ctrlCharName.Text; if (this.m_strLocalName.Length == 0) { string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("81"); Main_UI_SystemMessage.ADDMessage(textFromNotify); this.m_bCharCreate = false; return(false); } if (this.m_strLocalName.Length > 20) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("126")); return(false); } if (this.m_strLocalName.Equals(this.m_strUserName)) { return(true); } if (UIDataManager.IsFilterSpecialCharacters(this.m_strLocalName, this._eCurrentService)) { string textFromNotify2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("79"); Main_UI_SystemMessage.ADDMessage(textFromNotify2); this.m_bCharCreate = false; return(false); } NrNetworkCustomizing nrNetworkCustomizing = (NrNetworkCustomizing)NrTSingleton <NrNetworkSystem> .Instance.GetNetworkComponent(); nrNetworkCustomizing.SendPacket_CheckUserName(this.m_strLocalName); this.ConfirmCharName(false); return(true); }
private void _OKCharDelete(object a_oObject) { Button button = a_oObject as Button; NrNetworkCustomizing nrNetworkCustomizing = (NrNetworkCustomizing)NrTSingleton <NrNetworkSystem> .Instance.GetNetworkComponent(); long personID = this.m_SelectForm.GetPersonID(button.TabIndex); if (personID != 0L) { nrNetworkCustomizing.SendPacket_DeleteAvatar(personID); } }
private bool _AgreementCharacterCustomNext(string strSupporterName) { if (this.m_kCreateChar == null) { return(false); } if (this.m_strUserName.Length == 0) { return(false); } if (COMMON_CONSTANT_Manager.GetInstance() == null) { TsLog.LogWarning("!!!!!!!!!!!!!!!!!!!!! NOT Error Common_Constant", new object[0]); return(false); } this.m_kCreateChar.GetPersonInfo().SetCharName(this.m_strUserName); this.SetCurrentPartInfo(); NrNetworkCustomizing nrNetworkCustomizing = (NrNetworkCustomizing)NrTSingleton <NrNetworkSystem> .Instance.GetNetworkComponent(); nrNetworkCustomizing.SendPacket_CreateAvatar(this.GetCharCustomizing(), strSupporterName); return(true); }