public IContent CreateRiddle() { TextParagraph p = new TextParagraph(); WritingBox box = Viewport as WritingBox; p.Content = box.Text; return(p); }
public bool ToViewport(IContent content) { TextParagraph p = content as TextParagraph; if (p == null) { return(false); } WritingBox b = new WritingBox(); b.Text = p.Content; Viewport = b; return(true); }