Example #1
0
 private void LoadAvailableComponents(IFeatureBranch featureBranch)
 {
     AvailableComponents = new ComponentsExplorerBar(featureBranch.GetMissingComponentsFromMain(),
                                                     this.ServiceLocator)
     {
         AllowItemsCheck = true
     };
     SubscribeToRootItemsPropertyChanged();
 }
Example #2
0
        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...");
        }