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