private async Task <IObservable <ClosingResult> > InstallAsync() { SetSessionValues(this.ViewModel); SetSessionValues(this.ViewModel.NoticeModel); SetSessionValues(this.ViewModel.LocationsModel); SetSessionValues(this.ViewModel.ConfigurationModel); SetSessionValues(this.ViewModel.ServiceModel); SetSessionValues(this.ViewModel.PluginsModel); this._progressCounter = new InstallProgressCounter(); this.StepsTab.Visibility = Visibility.Hidden; this._controller = await this.ShowProgressAsync( ViewResources.MainWindow_InstallingTitle, string.Format(ViewResources.MainWindow_InstallingMessage, this._currentVersion), true); return(Observable.Create <ClosingResult>(o => { this._installerStartEvent.Set(); return Disposable.Empty; })); }
public SetupWizard(ManualResetEvent installStartEvent) { InitializeComponent(); this.installStartEvent = installStartEvent; this.progressCounter = new InstallProgressCounter(0.5); }