public void sendConfigurations() { byte[] msgConfigurationDLL = Encoding.UTF8.GetBytes(HandlerXML.getDLLConfigurationToSend()); byte[] msgConfigurationSOAP = Encoding.UTF8.GetBytes(HandlerXML.getSOAPConfigurationToSend()); client.Publish(topics[1], msgConfigurationDLL); richTextBoxLog.AppendText("Sending DLL configuration" + Environment.NewLine); client.Publish(topics[1], msgConfigurationSOAP); richTextBoxLog.AppendText("Sending SOAP configuration" + Environment.NewLine); }
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"; }
private void buttonSOAP_Click(object sender, EventArgs e) { richTextBoxConfig.Text = HandlerXML.getSOAPConfiguration().ToString(); }