private void btnChangeServer_Click(object sender, EventArgs e) { UnityGMClient.CClientCore.Singleton.Final(); this.Hide(); timerWait.Stop(); FormSelectZone.showForm(); }
public static FormSelectZone getForm() { if (g_formSelectZone == null) { g_formSelectZone = new FormSelectZone(); } return(g_formSelectZone); }
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); }
public static void showForm() { if (g_formSelectZone == null) { g_formSelectZone = new FormSelectZone(); } g_formSelectZone.showWnd(); g_formSelectZone.TimerStart(); if (FormLogin.g_FastEnter == true) { g_formSelectZone.sendTokenLoginByAccountID(); } }
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); } }