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