private static void SaveInstallInfo(IInstall install) { BlobCache.LocalMachine.InsertObject("install", install switch { SteamInstall => new SavedInstall(SavedInstallType.Steam, install.Directory()), ManualInstall => new SavedInstall(SavedInstallType.Manual, install.Directory()) });
public PatcherViewModel(IInstall install) { Router = new RoutingState(); Activator = new ViewModelActivator(); this.install = install; this.WhenActivated(disposables => { Router .Navigate .Execute(new PatcherURLInputViewModel(install.Directory(), this)) .Subscribe() .DisposeWith(disposables); }); }