Esempio n. 1
0
        public VideoFileProvider()
        {
            bitPerPixel = 24;

            VideoFileProviderSection section = MainLogic.Instance.ConfigurationLogic.GetSection <VideoFileProviderSection>(sectionName);

            Filters.LoadFrom(section);
            if (section != null)
            {
                sourceFile = section.VideoFile;
            }
        }
Esempio n. 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);
        }