public VideoFileProvider() { bitPerPixel = 24; VideoFileProviderSection section = MainLogic.Instance.ConfigurationLogic.GetSection <VideoFileProviderSection>(sectionName); Filters.LoadFrom(section); if (section != null) { sourceFile = section.VideoFile; } }
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); }