private void SetAtributosConfiguracao() { XmlNode node; UtilitariosXML xmlUtil = new UtilitariosXML(CaminhosXML.FilePath_Configs_Mysql); // Set string: _servidor node = xmlUtil.GetSingleNode(XMLNames.Server); this._servidor = xmlUtil.GetAttributeValue(node); // Set string: _bancoDeDados node = xmlUtil.GetSingleNode(XMLNames.DataBase); this._bancoDeDados = xmlUtil.GetAttributeValue(node); // Set string: _usuario node = xmlUtil.GetSingleNode(XMLNames.UserID); this._usuario = xmlUtil.GetAttributeValue(node); // Set string: _senha node = xmlUtil.GetSingleNode(XMLNames.Password); this._senha = xmlUtil.GetAttributeValue(node); }
public static bool CustomRace_Property_Active(string customRaceName, string propertyName) { XmlNode systemsNode = XmlUtils.GetSingleNode(GeNovaNode, XMLNames.Systems); XmlNode customRaceNode = XmlUtils.GetSingleNode(systemsNode, XMLNames.CustomRace); XmlNode raceNode = XmlUtils.GetSingleNode(customRaceNode, customRaceName); XmlNode propertyNode = XmlUtils.GetSingleNode(raceNode, propertyName); return(Convert.ToBoolean(XmlUtils.GetAttributeValue(propertyNode, XMLNames.Active))); }