// 注册按钮 private void OnClickRegistBtn() { if (m_account != string.Empty && m_password != string.Empty) { //if (m_IsAccount && m_isPassWord) //{ //真注册逻辑 //CRegister Register = new CRegister(); //Register.username = m_account; //Register.password = m_password; //IOControler.GetInstance().SendPlatform(Register); // 假注册 实际点击的是快速开始 if (SettingOptionItem.instance == null) { GameEventDispatcher.Inst.dispatchEvent(GameEventID.U_CloseUI, AccountBinding.UI_ResPath); CGuest msgLogin = new CGuest(); msgLogin.device_key = AppManager.Inst.DeviceUniqueIdentifier; IOControler.GetInstance().SendPlatform(msgLogin); } else { GameEventDispatcher.Inst.dispatchEvent(GameEventID.U_CloseUI, AccountBinding.UI_ResPath); } //} } else { M_RePassWordPromptText.text = "账号或密码不能为空,请重新输入"; } }
// ===================== 按钮回调 ================= // 快速游戏 按钮回调 private void OnClickQuickPlayBtn() { CGuest msgLogin = new CGuest(); msgLogin.device_key = AppManager.Inst.DeviceUniqueIdentifier; IOControler.GetInstance().SendPlatform(msgLogin); }
public ActionResult AddGuest() { GuestEvent ge = new GuestEvent(); CGuest guest = new CGuest(); CEvents events = new CEvents(); ge.Guest = guest; ge.Events = events; return(View()); }
protected void btnInsert_Click(object sender, EventArgs e) { try { CGuest guest = new CGuest(); guest.Gender = gender; guest.AgeGroup = age; guest.City = city; guest.Ethnicity = ethnicity; guest.Repeat = repeat; guest.EventID = eventID; guest.Insert(); } catch (Exception ex) { Response.Write(ex.Message); } }
public void Insert() { CGuest oGuest = new CGuest(); oGuest.Gender = "female"; oGuest.AgeGroup = "child"; oGuest.Ethnicity = "white"; oGuest.City = "appleton"; oGuest.RepeatVisitor = 0; oGuest.Insert(); CGuest oNewGuest = new CGuest(); oNewGuest.GuestID = oGuest.GuestID; oNewGuest.LoadByID(); Assert.AreEqual(oGuest.City, oNewGuest.City); }
protected override void OnClickCloseBtn() { base.OnClickCloseBtn(); //UI_HomeControler.Inst.ReMoveUI(gameObject); GameEventDispatcher.Inst.dispatchEvent(GameEventID.U_CloseUI, UI_AnnounceMgr.UI_ResPath); UI_LoginWin.m_StarShow = true; UI_SelectLoginServer.m_StarShow = true; string nState = ConfigsManager.Inst.GetClientConfig(ClientConfigs.State); if (nState == string.Empty) { GameEventDispatcher.Inst.dispatchEvent(GameEventID.U_OpenUI, UI_SelectLoginServer.UI_ResPath); } else { CGuest msgLogin = new CGuest(); msgLogin.device_key = AppManager.Inst.DeviceUniqueIdentifier; IOControler.GetInstance().SendPlatform(msgLogin); } }