private void pmGetCorp() { string strModule = ""; dlgGetCorp ofrmGetCorp = new dlgGetCorp(); ofrmGetCorp.ShowDialog(); if (ofrmGetCorp.DialogResult == DialogResult.OK) { App.SetActiveCorp(ofrmGetCorp.RetrieveValue()); //this.MainStatusBar.Panels["CORPNAME"].Text = App.ActiveCorp.Name; //this.Text = App.ActiveCorp.Name.TrimEnd() + " " + strModule + " for MS SQL Server Version date [" + App.AppVersion + "]"; } else { this.pmGetLogin(); } }
private void frmMainmenu_Load(object sender, EventArgs e) { frmStartPage ofrmStartPage = frmStartPage.GetInstanse(); ofrmStartPage.MdiParent = this; ofrmStartPage.Show(); dlgGetCorp ofrmGetCorp = new dlgGetCorp(); ofrmGetCorp.ShowDialog(); if (ofrmGetCorp.DialogResult == DialogResult.OK) { App.SetActiveCorp(ofrmGetCorp.RetrieveValue()); //this.MainStatusBar.Panels["CORPNAME"].Text = App.ActiveCorp.Name; //this.Text = App.ActiveCorp.Name.TrimEnd() + " " + strModule + " for MS SQL Server Version date [" + App.AppVersion + "]"; } else { Application.Exit(); } }