private void CloseViewsForFailureMechanismsNotPartOfAssembly(IEnumerable <IFailureMechanism> failureMechanisms) { foreach (IFailureMechanism failureMechanism in failureMechanisms.Where(fm => !fm.InAssembly)) { viewCommands.RemoveAllViewsForItem(failureMechanism); } }
public void DoPostUpdateActions() { while (removedObjects.Count > 0) { viewCommands.RemoveAllViewsForItem(removedObjects.Dequeue()); } }
public void DoPostReplacementUpdates() { if (!failureMechanism.DuneLocations.Any()) { viewCommands.RemoveAllViewsForItem(failureMechanism); } }