public Core.Config.Config BuildModel(Core.Config.WindowLayout existingWindowLayout, Core.Config.RouterSettings existingRouterSettings, Core.Config.MainLayout existingMainLayout, Core.Config.PositionSettings existingPositionSettings) { Core.Config.Locations locations = new Core.Config.Locations(this.Locations.FolderLogs, this.Locations.FolderScreenshotsSteam, this.Locations.FolderScreenshotsElite, this.Locations.FolderCollectedScreenshots); Core.Config.Services services = new Core.Config.Services(this.Services.JournalParser, this.Services.ScreenshotConverter, this.Services.CollectScreenshots); Core.Config.Config configModel = new Core.Config.Config(locations, services, existingWindowLayout, existingRouterSettings, existingMainLayout, existingPositionSettings); return(configModel); }
public Config(Core.Config.Config configurationModel) : this() { this.Locations.FolderLogs = configurationModel?.Locations?.FolderLogs; this.Locations.FolderScreenshotsSteam = configurationModel?.Locations?.FolderScreenshotsSteam; this.Locations.FolderScreenshotsElite = configurationModel?.Locations?.FolderScreenshotsElite; this.Locations.FolderCollectedScreenshots = configurationModel?.Locations?.FolderCollectedScreenshots; this.Services.JournalParser = configurationModel?.Services?.JournalParser ?? false; this.Services.ScreenshotConverter = configurationModel?.Services?.ScreenshotConverter ?? Core.Config.BmpConverterMode.Deactivated; this.Services.CollectScreenshots = configurationModel?.Services?.CollectScreenshots ?? false; }
public ConfigUpdated(Core.Config.Config newConfig) { this.NewConfig = newConfig; }
public ConfigurationChanged(Core.Config.Config newConfiguration) { this.NewConfiguration = newConfiguration; }
/// <summary> /// Notify the actor system about a new configuration. /// </summary> /// <param name="newConfig"></param> public void NotifyUpdatedConfiguration(Core.Config.Config newConfig) { this.connectorManager.Tell(new ConnectorManagerMessage.ConfigUpdated(newConfig)); this.screenshotProcessor.Tell(new ScreenshotProcessorMessage.ConfigUpdated(newConfig)); }