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); }
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); }