public static TSysSettings getSystemSettingsProductioInfo(string SiteTag) { TSysSettings theResult = new TSysSettings(); foreach (TSysSettings ui in SystemSettingsProduction) { if (ui.SiteTag == SiteTag) { theResult = ui; break; } } return(theResult); }
public static void SetProductionGlobalInfo(string sysDBTag) { DataTable siteList = TConnections.GetSiteList(); foreach (DataRow dr in siteList.Rows) { try { TSysSettings theProductionInfo = new TSysSettings(); theProductionInfo.SiteTag = dr["Name"].ToString(); theProductionInfo.GetSysSettings(sysDBTag, dr["Name"].ToString()); SystemSettingsProduction.Add(theProductionInfo); } catch (Exception) { } } }