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"); }
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"); }