void IDisplay.Display(SceneContent sceneContent) { using (ImageDisplayContent imageDisplayContent = _imageDisplayContentFactory.Create(sceneContent)) // We request an instance and then dispose of it { _imageDisplayView.Display(imageDisplayContent); } }
public void Visit(SceneContentDialogue sceneContentDialogue) { _imageDisplayContent = Create(sceneContentDialogue); }
public void Display(ImageDisplayContent imageContent) { Debug.Assert(imageContent != null); imageContent.Accept(this); }