public RenameComponentViewModel(IMainBranch mainBranch, ILogicalComponent component, IServiceLocator serviceLocator, Action <bool> setInProgressStatus) : base(mainBranch, component, serviceLocator, setInProgressStatus) { }
public FeatureBranchBuilderViewModel(IExplorerBar sourceComponents, IMainBranch mainBranch, IServiceLocator serviceLocator) : base(serviceLocator) { _mainBranch = mainBranch; SourceComponents = sourceComponents; SubscribeToRootItemsPropertyChanged(); UpdateSelectedComponents(); CreateCommand = new Command(CreateFeatureBranch, () => CanCreate(), this); CancelCommand = new Command(Cancel); }
private void ScanForSimilarComponents(IMainBranch mainBranch) { this.SimilarComponents = mainBranch.ScanForSimilarComponents(Component); _locations.Clear(); foreach (var similarComponent in SimilarComponents) { similarComponent.AcceptCommandVisitor(() => this); } this.ExecuteOnUIThread(() => OnPropertyChanged(nameof(Locations))); }
public RenameDeleteComponentViewModel(IMainBranch mainBranch, ILogicalComponent component, IServiceLocator serviceLocator, Action <bool> setInProgressStatus) : base(serviceLocator) { MainBranch = mainBranch; Component = component; _setInProgressStatus = setInProgressStatus; this.OkCommand = new Command(OkAction, () => !this.IsBusy && CanDoWork(), this); this.CancelCommand = new Command(Deactivate, () => !this.IsBusy, this); StartBusyAction(() => ScanForSimilarComponents(mainBranch), $"Searching for components with name {Component.Name}"); }
public NewFeatureBranchEventData(IFeatureBranch feature, IMainBranch owner) { this.Feature = feature; this.Owner = owner; }
public IFeatureBranch CreateFeatureBranch(Folders.FeatureFolder folder, IMainBranch owner) { return(new FeatureBranch(folder, owner, _serviceLocator)); }
public IEnumerable <IFeatureBranch> GetFeatureBranches(Folders.EnvironmentFolder environmentSpecificFolder, IMainBranch owner) { var featuresBranches = new List <IFeatureBranch>(); foreach (var featureFolder in environmentSpecificFolder.Features.Features()) { featuresBranches.Add(_componentsFactory.CreateFeatureBranch(featureFolder, owner)); } return(featuresBranches); }
public FeatureBranch(Folders.FeatureFolder folder, IMainBranch owner, IServiceLocator serviceLocator) { _featureFolder = folder; this.Owner = owner; _serviceLocator = serviceLocator; }