private void UpdateConfig(string Xvalue)
{
XmlDocument doc = new XmlDocument();
doc.Load(System.Windows.Forms.Application.StartupPath+" //MapInfo.xml");
XmlNode node = doc.SelectSingleNode(@"//add[@key='MapPath']");
XmlElement ele = (XmlElement)node;
ele.SetAttribute("value",Xvalue);
doc.Save(System.Windows.Forms.Application.StartupPath+" //MapInfo.xml");
}
private string ReadConfig()
{
XmlDocument doc = new XmlDocument();
doc.Load(System.Windows.Forms.Application.StartupPath+" //MapInfo.xml");
XmlNode node = doc.SelectSingleNode(@"//add[@key='MapPath']");
XmlElement ele = (XmlElement)node;
string retVal=ele.GetAttribute("value");
return retVal;
}
{
XmlDocument doc = new XmlDocument();
doc.Load(System.Windows.Forms.Application.StartupPath+" //MapInfo.xml");
XmlNode node = doc.SelectSingleNode(@"//add[@key='MapPath']");
XmlElement ele = (XmlElement)node;
ele.SetAttribute("value",Xvalue);
doc.Save(System.Windows.Forms.Application.StartupPath+" //MapInfo.xml");
}
private string ReadConfig()
{
XmlDocument doc = new XmlDocument();
doc.Load(System.Windows.Forms.Application.StartupPath+" //MapInfo.xml");
XmlNode node = doc.SelectSingleNode(@"//add[@key='MapPath']");
XmlElement ele = (XmlElement)node;
string retVal=ele.GetAttribute("value");
return retVal;
}