Example #1
0
 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);
 }
Example #2
0
 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;
 }
Example #4
0
 public ConfigurationChanged(Core.Config.Config newConfiguration)
 {
     this.NewConfiguration = newConfiguration;
 }
Example #5
0
 /// <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));
 }