示例#1
0
 private void btnChangeServer_Click(object sender, EventArgs e)
 {
     UnityGMClient.CClientCore.Singleton.Final();
     this.Hide();
     timerWait.Stop();
     FormSelectZone.showForm();
 }
示例#2
0
 public static FormSelectZone getForm()
 {
     if (g_formSelectZone == null)
     {
         g_formSelectZone = new FormSelectZone();
     }
     return(g_formSelectZone);
 }
示例#3
0
        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);
        }
示例#4
0
 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();
     }
 }
示例#5
0
        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);
            }
        }