public LauncherCollectionCache(ApplicationSettings applicationSettings, IErrorDialogService errorDialogService) { Settings = applicationSettings; Repo = new LauncherCollectionRepo(Settings.LauncherCollectionLocation, errorDialogService); Cache = new HashSet <LauncherCollection>(new LauncherCollectionEqualityComparer()); Populate(); }
public override void Initialize() { SetupCatalogInitializer(ExtraLaunchers.AddNone); Settings = new ApplicationSettings(); var path = Settings.LauncherCollectionLocation; var errorReport = new ErrorReport(false); Repo = new LauncherCollectionRepo(path, errorReport); DirectoryCreator = new DirectoryCreator(Settings, errorReport); DirectoryCreator.CreateLauncherCollectionStorageLocation(); var collectionName = Collection.Name; PathHolder.DirectoryPath = $"{path}/{collectionName}"; PathHolder.XMLPath = $"{path}/{collectionName}/{collectionName}.xml"; }
public override void Initialize() { SetupCatalogInitializer(ExtraLaunchers.AddNone); Settings = new ApplicationSettings(); var path = Settings.LauncherCollectionLocation; var errorReport = new ErrorReport(false); DirectoryCreator = new DirectoryCreator(Settings, errorReport); DirectoryCreator.CreateLauncherCollectionStorageLocation(); var repo = new LauncherCollectionRepo(path, errorReport); repo.Create(Collection); Cache = new LauncherCollectionCache(Settings, errorReport); AdditionalCollections = new[] { new LauncherCollection("Falcon"), new LauncherCollection("Delta"), new LauncherCollection("Atlas"), }; }