private void CarregaConfig() { WebDbArgs args = new WebDbArgs(Server.MapPath(Utility.ArqConfigXml)); args.Open(); lblDadosConn.Text = "Server:" + args.Server + "; Database:" + args.Database + "; Type:" + args.DbType + "; User:"******"; Senha:******;"; }
/// <summary> /// Retorna um objeto de configurações /// </summary> /// <param name="ArqCfg"></param> /// <returns></returns> private static WebDbArgs getWebDbArgs(string CfgXml) { WebDbArgs w = new WebDbArgs(CfgXml); if (System.IO.File.Exists(w.FileName)) { w.Open(); return(w); } else { return(null); } }
private void CarregaConfig() { dvCfgConnection.Visible = false; dvTable.Visible = false; WebDbArgs args = new WebDbArgs(Server.MapPath(Utility.ArqConfigXml)); args.Open(); txtDbType.Text = args.DbType; txtServer.Text = args.Server; chkWindowsAut.Checked = args.WindowsAuthentication; txtDatabase.Text = args.Database; txtUser.Text = args.User; txtPassword.Text = args.Password; ExibeInfoConnection(args); }