Exemplo n.º 1
0
        public override void Initialize()
        {
            SetupCatalogInitializer(ExtraLaunchers.AddNone);

            Settings = new ApplicationSettings();

            var path        = Settings.LauncherLocation;
            var errorReport = new ErrorReport(false);

            Repo             = new LauncherRepo(path, errorReport);
            DirectoryCreator = new DirectoryCreator(Settings, errorReport);

            DirectoryCreator.CreateLauncherStorageLocation();

            var launcherName = AngaraA5.Name;

            PathHolder.DirectoryPath = $"{path}/{launcherName}";
            PathHolder.XMLPath       = $"{path}/{launcherName}/{launcherName}.xml";
        }
        public override void Initialize()
        {
            SetupCatalogInitializer(ExtraLaunchers.AddNone);

            Settings = new ApplicationSettings();

            var path        = Settings.LauncherLocation;
            var errorReport = new ErrorReport(false);

            DirectoryCreator = new DirectoryCreator(Settings, errorReport);
            DirectoryCreator.CreateLauncherStorageLocation();

            var repo = new LauncherRepo(path, errorReport);

            repo.Create(AngaraA5);

            Cache = new LauncherCache(Settings, errorReport);
            AdditionalLaunchers = new[]
            {
                new Launcher("Falcon 9"),
                new Launcher("Delta II"),
                new Launcher("Atlas V"),
            };
        }