protected void testUIInfo() { InfoBoxParam param = Ctx.m_instance.m_poolSys.newObject <InfoBoxParam>(); param.m_midDesc = "aaaaaa"; UIInfo.showMsg(param); }
// 验证字符串 protected bool validStr(string name, string passwd) { if (name.Length == 0) { InfoBoxParam param = Ctx.m_instance.m_poolSys.newObject <InfoBoxParam>(); param.m_midDesc = Ctx.m_instance.m_langMgr.getText(LangTypeId.eLogin3, LangItemID.eItem2);; Ctx.m_instance.m_langMgr.getText(LangTypeId.eLTLog0, LangItemID.eItem22); UIInfo.showMsg(param); return(false); } else if (UtilLogic.IsIncludeChinese(name)) { InfoBoxParam param = Ctx.m_instance.m_poolSys.newObject <InfoBoxParam>(); param.m_midDesc = Ctx.m_instance.m_langMgr.getText(LangTypeId.eLogin3, LangItemID.eItem0); UIInfo.showMsg(param); return(false); } if (name.Length == 0) { InfoBoxParam param = Ctx.m_instance.m_poolSys.newObject <InfoBoxParam>(); param.m_midDesc = Ctx.m_instance.m_langMgr.getText(LangTypeId.eLogin3, LangItemID.eItem3); UIInfo.showMsg(param); return(false); } else if (UtilLogic.IsIncludeChinese(passwd)) { InfoBoxParam param = Ctx.m_instance.m_poolSys.newObject <InfoBoxParam>(); param.m_midDesc = Ctx.m_instance.m_langMgr.getText(LangTypeId.eLogin3, LangItemID.eItem1); UIInfo.showMsg(param); return(false); } return(true); }
protected void onDelBtnClk(IDispatchObject dispObj) { InfoBoxParam param = Ctx.m_instance.m_poolSys.newObject <InfoBoxParam>(); param.m_btnClkDisp = delRet; param.m_midDesc = Ctx.m_instance.m_langMgr.getText(LangTypeId.eTuJian6, LangItemID.eItem0); UIInfo.showMsg(param); }
// 点击登陆处理 protected void onBtnClkLogin() { string textStr = ""; if (Ctx.m_instance.m_loginSys.get_LoginState() == LoginState.eLoginSuccessGateServer || Ctx.m_instance.m_loginSys.get_LoginState() == LoginState.eLoginNewCharError) // 网关登陆成功或者建立角色错误 { AuxInputField lblName = new AuxInputField(m_GUIWin.m_uiRoot, LoginComPath.PathLblName); if (lblName.text.Length == 0) // 如果没有输入名字 { // 给出一个提示 textStr = Ctx.m_instance.m_langMgr.getText(LangTypeId.eSelectHero2, LangItemID.eItem1); InfoBoxParam param = Ctx.m_instance.m_poolSys.newObject <InfoBoxParam>(); param.m_midDesc = textStr; UIInfo.showMsg(param); } else if (Ctx.m_instance.m_wordFilterManager.IsMatch(lblName.text)) // 如果包含非法字符 { // 给出一个提示 textStr = Ctx.m_instance.m_langMgr.getText(LangTypeId.eSelectHero2, LangItemID.eItem2); InfoBoxParam param = Ctx.m_instance.m_poolSys.newObject <InfoBoxParam>(); param.m_midDesc = textStr; UIInfo.showMsg(param); } else { // 判断名字长度 if (UtilLogic.CalcCharCount(lblName.text) <= ProtoCV.MAX_NAMESIZE) { stCreateSelectUserCmd cmd = new stCreateSelectUserCmd(); cmd.strUserName = lblName.text; cmd.country = 1; UtilMsg.sendMsg(cmd); } else { // 给出一个提示 textStr = Ctx.m_instance.m_langMgr.getText(LangTypeId.eSelectHero2, LangItemID.eItem0); InfoBoxParam param = Ctx.m_instance.m_poolSys.newObject <InfoBoxParam>(); param.m_midDesc = textStr; UIInfo.showMsg(param); } } } }