public static FormSelectRole getForm() { if (g_Form == null) { g_Form = new FormSelectRole(); } return(g_Form); }
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(); }
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(); }
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); } }
private void cancel_Click(object sender, EventArgs e) { this.Hide(); timerWait.Stop(); FormSelectRole.showForm(); }