Exemple #1
0
 public static FormSelectRole getForm()
 {
     if (g_Form == null)
     {
         g_Form = new FormSelectRole();
     }
     return(g_Form);
 }
Exemple #2
0
        public static void showForm()
        {
            if (g_Form == null)
            {
                g_Form = new FormSelectRole();
            }

            g_Form.showRadioButton(GC.CPlayer.Singleton.getRoleBaseInfoList());
            g_Form.Show();
            g_Form.TimerStart();
        }
Exemple #3
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();
        }
Exemple #4
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);
            }
        }
Exemple #5
0
 private void cancel_Click(object sender, EventArgs e)
 {
     this.Hide();
     timerWait.Stop();
     FormSelectRole.showForm();
 }