Пример #1
0
 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);
 }
Пример #2
0
        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();
        }
Пример #3
0
        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";
        }
Пример #4
0
 private void buttonSOAP_Click(object sender, EventArgs e)
 {
     richTextBoxConfig.Text = HandlerXML.getSOAPConfiguration().ToString();
 }