Exemple #1
0
        public SettingsFromXML()
        {
            UtilsXML handleXML = new UtilsXML();

            //configXML = handleXML.readFromXML("config.xml", currentDirectory);
            configXML = handleXML.readFromXML("config.xml", "C:\\Progetti\\TextConverter\\TextConverter");

            // input
            inputFormat    = configXML["inputFormat"];
            splitKeyValue  = configXML["splitKeyValue"];
            splitVariables = configXML["splitVariables"];
            firstValue     = configXML["firstValue"].ToUpper();
            lastValue      = configXML["lastValue"].ToUpper();

            // settings
            MqttTopicSubscribe     = configXML["MqttTopicSubscribe"];
            MqttIpAddressSubscribe = configXML["MqttIpAddressSubscribe"];
        }