public void UpdateDisplayComponents(TestExecution testExecution, ref List <ROIInstance> roiInstances, ref List <IDecorationInstance> decorationInstances) { roiInstances.Clear(); decorationInstances.Clear(); if (testExecution == null) { return; } if (testExecution.Sequence() != mTestSequence) { throw new ArgumentException("3244289"); } foreach (ROIDefinition roiDef in roisToShow) { if (roiDef == null) { continue; } ROIInstance roi = testExecution.ROIRegistry.GetObjectIfExists(roiDef.Name); if (roi != null) { roiInstances.Add(roi); } } foreach (IDecorationDefinition decorationDef in decorationsToShow) { if (decorationDef == null) { continue; } IDecorationInstance decoration = testExecution.DecorationRegistry.GetObjectIfExists(decorationDef.Name); if (decoration != null) { decorationInstances.Add(decoration); } } }
public TestSequence TestSequence() { return(mTestExecution.Sequence()); }