コード例 #1
0
        public InstallationSettingsViewModel(SettingsController controller)
            : base("INSTALLATION", controller)
        {
            RemoveInstallationCommand = new ReactiveCommand(SelectedInstall.Select(i => i != null), false);

            DetectInstallationsCommand.Subscribe(OnDetectInstallations);
            RemoveInstallationCommand.Subscribe(OnRemoveInstallation);
            AddInstallationCommand.Subscribe(OnAddInstallation);
            VerifyInstallationsCommand.Subscribe(OnVerifyInstallations);
        }
コード例 #2
0
        public InstallationsWizardStepViewModel(IContainer container)
            : base(container)
        {
            _settingsService = container.Resolve <ISettingsService>();

            AddInstallationCommand.Subscribe(OnAddInstallation);
            DetectInstallationsCommand.Subscribe(OnDetectInstallations);

            RemoveInstallationCommand = new ReactiveCommand(SelectedInstall.Select(i => i != null), false);
            RemoveInstallationCommand.Subscribe(OnRemoveInstallation);
        }