예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
파일: Screen.cs 프로젝트: dolani/CodeTorch
        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());
        }
예제 #4
0
        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);
        }
예제 #5
0
        public static void ReloadConfigurationItems(string ConfigurationFolder, string ConfigurationItemType)
        {
            string ConfigPath = ConfigurationLoader.GetFileConfigurationPath();

            LoadDirectoryItems(ConfigPath + ConfigurationFolder, ConfigurationItemType);
        }