private void LoadUCLogin() { try { if (this.plMain.Controls.Count > 0) { this.plMain.Controls.RemoveAt(0); } this.ucLogin = new UCLogin(); // this.ucLogin.LoginEvent += new LoginHandler(this.ProcessLoginEvent); this.ucLogin.ExitEvent += new ExitHandler(this.ProcessExitEvent); this.plMain.Controls.Add(this.ucLogin); } catch (Exception ex) { Utility.ShowMessageBox("网络故障!"); Application.Exit(); } }
private void LoadUCLogin() { try { if (this.plMain.Controls.Count > 0) { this.plMain.Controls.RemoveAt(0); } this.ucLogin = new UCLogin(); // this.ucLogin.LoginEvent += new LoginHandler(this.ProcessLoginEvent); this.ucLogin.ExitEvent += new ExitHandler(this.ProcessExitEvent); this.plMain.Controls.Add(this.ucLogin); } catch (Exception ex) { Utility.ShowMessageBox("网络故障!"); Application.Exit(); } }