private void getConfiguration() { string currentDir = Environment.CurrentDirectory; String filename = new DirectoryInfo(Path.GetFullPath(Path.Combine(currentDir, Application.StartupPath + @"\Utils\ParkingNodesConfig.xml"))).ToString(); HandlerXML handler = new HandlerXML(filename); handler.LoadConfigurations(); }
private void buttonValidate_Click(object sender, EventArgs e) { string xml = textBoxXmlFile.Text; HandlerXML handler = new HandlerXML(xml); handler.LoadConfigurations(); this.Close(); //FormDACE.richTextBoxLog.Text += "Reading Configurations from XML... Successfull" + "\n"; //FormDACE.richTextBoxLog.Text += "--------------------------------------------------------------------------------------------------\n"; }