Example #1
0
        public string SaveXMLFormat(string keysPath, string devicesPath, Dictionary <string, Device> dict)
        {
            SerializerDictionaryXML xml = new SerializerDictionaryXML(keysPath, devicesPath);

            xml.Serialaze(dict);
            return("Smart house save in XML format");
        }
Example #2
0
        public string LoadFromXMLFormat(string keysPath, string devicesPath, Dictionary <string, Device> dict)

        {
            SerializerDictionaryXML xml = new SerializerDictionaryXML(keysPath, devicesPath);

            xml.Deserialaze();
            dict = xml.deserialazeDict;
            return("Smart house load from XML format");
        }