void IComponentRenameDeleteHandler.StartDeleting(ILogicalComponent component) { ShowSideBarItem(new DeleteComponentViewModel(this.MainBranch, component, this.ServiceLocator, OnRenameDeleteInProgress)); }
public RenameComponentViewModel(IMainBranch mainBranch, ILogicalComponent component, IServiceLocator serviceLocator, Action <bool> setInProgressStatus) : base(mainBranch, component, serviceLocator, setInProgressStatus) { }
public ExistingComponentMergeSet(ILogicalComponent sourceComponent, IEnumerable <IMergeableChangeSet> changeSets, Folders.ComponentsFolder targetComponentsFolder) { this.SourceComponent = sourceComponent; this.ChangeSets = changeSets; _targetComponentsFolder = targetComponentsFolder; }
public virtual bool SameAs(ILogicalComponent component) { if (component == null) { return(false); } return(this.GetType() == component.GetType() && this.Name == component.Name); }
public ComponentDeleteTransaction(ILogicalComponent component, TLocation location, IServiceLocator serviceLocator, params IComponentUniqueId[] uniqueIDs) { this.Component = component; this.Location = location; this.ServiceLocator = serviceLocator; _uniqueIDs = uniqueIDs; }
public override bool SameAs(ILogicalComponent component) { if (!base.SameAs(component)) { return(false); } var theOther = component as GameComponent; return(this.EngineName == theOther.EngineName); }
public ComponentRenameTransaction( ILogicalComponent component, TLocation oldLocation, TLocation newLocation, IServiceLocator serviceLocator) { this.Component = component; OldLocation = oldLocation; NewLocation = newLocation; _serviceLocator = serviceLocator; }
public IEnumerable <ILogicalComponent> ScanForSimilarComponents(ILogicalComponent component) { var allComponents = GetQaBranch().GetComponents() .Union(GetQaBranch().GetFeatureBranches().SelectMany(fb => fb.GetComponents())) .Union(GetDevBranch().SelectMany(devBranch => devBranch.GetComponents())) .Union(GetDevBranch().SelectMany(devBranch => devBranch.GetFeatureBranches().SelectMany(fb => fb.GetComponents()))); var similarComponents = new List <ILogicalComponent>(); foreach (var c in allComponents) { if (c.SameAs(component)) { similarComponents.Add(c); } } return(similarComponents); }
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 RenameComponentAction(IComponentRenameDeleteHandler renameDeleteHandler, ILogicalComponent component) : base(renameDeleteHandler, component) { }
public ComponentDeletedEventData(ILogicalComponent component) { this.Component = component; }
public NewComponentMergeSet(ILogicalComponent sourceComponent, Folders.ComponentsFolder targetComponentsFolder) { this.SourceComponent = sourceComponent; _targetComponentsFolder = targetComponentsFolder; }
public RenameDeleteAction(IComponentRenameDeleteHandler renameDeleteHandler, ILogicalComponent component) { RenameDeleteHandler = renameDeleteHandler; Component = component; RenameDeleteHandler.PropertyChanged += RenameDeleteHandler_PropertyChanged; }
public IEnumerable <ILogicalComponent> ScanForSimilarComponents(ILogicalComponent component) { return(this.Owner.ScanForSimilarComponents(component)); }
public ComponentRenamedEventData(ILogicalComponent component) { this.Component = component; }