示例#1
0
        public override void Save()
        {
            ConfigurationLogic configurationLogic = MainLogic.Instance.ConfigurationLogic;
            FiltersSection     section            = configurationLogic.GetSection <FiltersSection>(sectionName);

            if (section == null)
            {
                section = new FiltersSection();
                configurationLogic.AddSection(sectionName, section);
            }
            Filters.SaveTo(section);
        }
示例#2
0
        public override void Save()
        {
            ConfigurationLogic       configurationLogic = MainLogic.Instance.ConfigurationLogic;
            VideoFileProviderSection section            = configurationLogic.GetSection <VideoFileProviderSection>(sectionName);

            if (section == null)
            {
                section = new VideoFileProviderSection();
                configurationLogic.AddSection(sectionName, section);
            }
            section.VideoFile = sourceFile;
            Filters.SaveTo(section);
        }