Esempio n. 1
0
 public MainWindowViewModel(
     Config config,
     RepairLauncher repairLauncher,
     IOsProcesses processes,
     InstallerPath installerPath)
 {
     _installerPath  = installerPath;
     _processes      = processes;
     _repairLauncher = repairLauncher;
     _config         = config;
 }
Esempio n. 2
0
        private void OnStartup(object sender, StartupEventArgs e)
        {
            var config         = new ConfigFactory().Config();
            var osProcesses    = new SystemProcesses(new NullLogger());
            var productCode    = GetProductCode();
            var installerPath  = new InstallerPath(productCode, config);
            var repairLauncher = new RepairLauncher(osProcesses, productCode);
            var vm             = new MainWindowViewModel(config, repairLauncher, osProcesses, installerPath);
            var window         = new MainWindow(vm);

            window.Show();
        }