private void LoadAvailableComponents(IFeatureBranch featureBranch) { AvailableComponents = new ComponentsExplorerBar(featureBranch.GetMissingComponentsFromMain(), this.ServiceLocator) { AllowItemsCheck = true }; SubscribeToRootItemsPropertyChanged(); }
public PublishToQAViewModel(ComponentsExplorerBar sourceComponents, IBranchPublisherViewModel branchPublisher, IServiceLocator serviceLocator) : base(serviceLocator) { _sourceComponents = sourceComponents; _branchPublisher = branchPublisher; this.OkCommand = new Command(Publish, () => HasSomethingToPublish && !this.IsBusy, this); this.CancelCommand = new Command(Deactivate, () => !this.IsBusy, this); StartBusyAction(() => LoadComponentsPublishers(), "Detecting components to publish..."); }