public void Clone(ImageDisplayDef theSourceDef) { if (theSourceDef.TestSequence != mTestSequence) { throw new ArgumentException("3292289"); } mImageDefinition = theSourceDef.ImageDefinition; roisToShow.Clear(); roisToShow.AddRange(theSourceDef.roisToShow); decorationsToShow.Clear(); decorationsToShow.AddRange(theSourceDef.decorationsToShow); mSizeMode = theSourceDef.SizeMode; if (ImageDisplayDefChange != null) { ImageDisplayDefChange(); } }
public ImageInstance(ImageDefinition theDefinition, TestExecution testExecution) : base(theDefinition, testExecution) { testExecution.ImageRegistry.RegisterObject(this); }