Exemplo n.º 1
0
 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())
     });
Exemplo n.º 2
0
        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);
            });
        }