public static void Save(ScreenType item) { string ConfigPath = ConfigurationLoader.GetFileConfigurationPath(); string filePath = String.Format("{0}ScreenTypes\\{1}.xml", ConfigPath, item.Name); ConfigurationLoader.SerializeObjectToFile(item, filePath); }
public static void Save(EmailConnectionType item) { string ConfigPath = ConfigurationLoader.GetFileConfigurationPath(); if (!Directory.Exists(String.Format("{0}EmailConnectionTypes", ConfigPath))) { Directory.CreateDirectory(String.Format("{0}EmailConnectionTypes", ConfigPath)); } string filePath = String.Format("{0}EmailConnectionTypes\\{1}.xml", ConfigPath, item.Name); ConfigurationLoader.SerializeObjectToFile(item, filePath); }
public static void Save(Screen item) { string ConfigPath = ConfigurationLoader.GetFileConfigurationPath(); if (!Directory.Exists(String.Format("{0}Screens\\{1}", ConfigPath, item.Folder))) { Directory.CreateDirectory(String.Format("{0}Screens\\{1}", ConfigPath, item.Folder)); } string filePath = String.Format("{0}Screens\\{1}\\{2}.xml", ConfigPath, item.Folder, item.Name); ConfigurationLoader.SerializeObjectToFile(item, filePath, GetExtraTypes()); }
public static void Save(Menu item) { string ConfigPath = ConfigurationLoader.GetFileConfigurationPath(); XmlSerializer x = new XmlSerializer(item.GetType()); if (!Directory.Exists(String.Format("{0}Menus", ConfigPath))) { Directory.CreateDirectory(String.Format("{0}Menus", ConfigPath)); } string filePath = String.Format("{0}Menus\\{1}.xml", ConfigPath, item.Name); ConfigurationLoader.SerializeObjectToFile(item, filePath); }
public static void ReloadConfigurationItems(string ConfigurationFolder, string ConfigurationItemType) { string ConfigPath = ConfigurationLoader.GetFileConfigurationPath(); LoadDirectoryItems(ConfigPath + ConfigurationFolder, ConfigurationItemType); }