Esempio n. 1
0
        public MainWindowViewModel(InstallPathService installPathService, PatchService patchService)
        {
            this._installPathService = installPathService;
            this._patchService       = patchService;

            GamePath = _installPathService.GetPathIfDefault();
        }
Esempio n. 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            //TODO DarthAffe 19.11.2016: Headless start to be able to use this with the launcher
            InstallPathService installPathService = new InstallPathService();
            PatchService       patchService       = new PatchService();

            MainWindowViewModel vm = new MainWindowViewModel(installPathService, patchService);

            MainWindow = new MainWindow(vm);
            MainWindow.Show();
        }