public override void Init() { if (AutoTestController.IsEnable(AutoTestTag.SelectServer)) { this._autoTest = true; } base.Init(); this.BindObject(); this.SetLanguage(); this.InitBtnObject(); this.SetRecommend(); this.SetLastSelect(); this.UploadDefaultSelect(); this.SetCurrentSelect(); this.SetAllBtnSelectState(this.mSelectedNow_lab.text); this.SetAccInfo(); }
private void On_server_Register(MobaMessage msg) { OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse == null) { Singleton <TipView> .Instance.ShowViewSetText("注册失败...系统错误", 1f); LoginStateManager.Instance.ChangeState(LoginStateCode.LoginState_waitLogin); } else { int num = (int)operationResponse.Parameters[1]; MobaErrorCode mobaErrorCode = (MobaErrorCode)num; if (mobaErrorCode != MobaErrorCode.Ok) { if (mobaErrorCode != MobaErrorCode.UserExist) { Singleton <TipView> .Instance.ShowViewSetText("注册失败...系统错误", 1f); LoginStateManager.Instance.ChangeState(LoginStateCode.LoginState_waitLogin); } else { if (!AutoTestController.IsEnable(AutoTestTag.Login)) { CtrlManager.ShowMsgBox("注册失败", "该账号已经被注册,请更换一个账号重新注册", null, PopViewType.PopOneButton, "确定", "取消", null); } LoginStateManager.Instance.ChangeState(LoginStateCode.LoginState_waitLogin); AutoTestController.InvokeTestLogic(AutoTestTag.Login, delegate { Singleton <LoginView_New> .Instance.TestRegisterAgain(); }, 1f); } } else { Singleton <TipView> .Instance.ShowViewSetText("注册成功", 1f); this.bFinish = true; LoginStateManager.Instance.ChangeState(LoginStateCode.LoginState_masterLogin); } } }