private void fmSetup_Load(object sender, EventArgs e) { if (Globals.theLanguageCode != "") { ChangeLanguage(Globals.theLanguageCode); } BalanceWarehouse Warehouse = new BalanceWarehouse(); Warehouse.UseDefaultCredentials = true; string Sqlserver = ""; string SqlInstance = ""; string SqlDatabaseUser = ""; string Company = ""; string WebUrl = ""; string Language = ""; string Printer = ""; try { Warehouse.WsReturnServerInfo(ref Sqlserver, ref SqlInstance, ref SqlDatabaseUser, ref Company, ref Language, ref WebUrl); tbSqlServer.Text = Sqlserver; tbInstance.Text = SqlInstance; tbDatabaseUser.Text = SqlDatabaseUser; tbCompany.Text = Company; tbLanguage.Text = Language; tbWebUrl.Text = WebUrl; } catch (Exception ex) { MessageBoxExample.MyMessageBox.ShowBox(ex.Message); } try { Warehouse.WSReturnPrinterInfo(Globals.theWinlogon, Globals.theLocation, ref Printer); lbPrinterName.Text = Printer; } catch (Exception ex) { MessageBoxExample.MyMessageBox.ShowBox(ex.Message); } Warehouse.Dispose(); tbInputData.Focus(); tbInputData.SelectAll(); Assembly asm = Assembly.GetExecutingAssembly(); FileInfo fi = new FileInfo(asm.Location); lbBuildDateTime.Text = fi.LastWriteTime.ToString(); lbLocation.Text = Globals.theLocation; }