Example #1
0
        private void CbRoleQuit(UnityGMClient.ERoleQuitResult retCode)
        {
            string lg = "[CbRoleQuit][retCode=" + retCode.ToString() + "]\r\n";

            Log(lg);
            if (retCode != UnityGMClient.ERoleQuitResult.EROLEQUIT_RESUlT_SUCCESS)
            {
                UnityUtility.CTrace.Singleton.debug("角色退出失败");
                return;
            }
            UnityUtility.CTrace.Singleton.debug("角色退出成功");
            this.Hide();
            timerWait.Stop();
            FormSelectRole.showForm();
            //FormSelectRole.getForm().InitPlayerData();
        }
Example #2
0
        void cbSelectServerResult(UnityGMClient.EErrorPlayerLoginServer result)
        {
            string lg = "[cbNormalLoginResult][result=" + result.ToString() + "]\r\n";

            Log(lg);
            if (result == UnityGMClient.EErrorPlayerLoginServer.ELOGINRESULT_SUCCESS)
            {
                this.Hide();
                timerWait.Stop();
                FormSelectRole.showForm();
                FormSelectRole.getForm().InitPlayerData();
            }
            else
            {
                MessageBox.Show("登录失败[" + result.ToString() + "]", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Example #3
0
 private void cancel_Click(object sender, EventArgs e)
 {
     this.Hide();
     timerWait.Stop();
     FormSelectRole.showForm();
 }