private void btnChangeServer_Click(object sender, EventArgs e) { UnityGMClient.CClientCore.Singleton.Final(); this.Hide(); timerWait.Stop(); FormSelectZone.showForm(); }
private void buttonToken_Click(object sender, EventArgs e) { GC.CPlayer.Singleton.m_taken = textBoxPassword.Text; GC.CPlayer.Singleton.m_accountID = 0; GC.CPlayer.Singleton.m_account = textBoxAccount.Text; buttonCancel.Visible = false; this.Hide(); timerWait.Stop(); FormSelectZone.showForm(true); }
void cbLoginResult(UnityGMClient.EGetAccountTokenResult result, UInt64 a_accountID, string a_taken) { GC.CPlayer.Singleton.m_taken = a_taken; GC.CPlayer.Singleton.m_accountID = a_accountID; string lg = "[cbNormalLoginResult][result=" + result.ToString() + "]\r\n"; Log(lg); setButtonState(true); if (result == UnityGMClient.EGetAccountTokenResult.EGETACCOUNTTAKEN_SUCCESS) { buttonCancel.Visible = false; this.Hide(); timerWait.Stop(); FormSelectZone.showForm(false); } else { MessageBox.Show("获取Token登录失败[" + result.ToString() + "]", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } }