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 int GetIdKRGump(Type type) { string gumpName = type.Name; UtilitariosXML xmlUtil = new UtilitariosXML(CaminhosXML.FilePath_Misc_Gumps); XmlNode rootNode = xmlUtil.GetRootNode(XMLNames.Gumps); XmlNode objectGumpNode = xmlUtil.FindNodeByAttribute(rootNode, XMLNames.Name, gumpName); int idKRGump = Convert.ToInt32(xmlUtil.GetAttributeValue(objectGumpNode)); return idKRGump; }