public IContent CreateRiddle() { TextParagraph p = new TextParagraph(); WritingBox box = Viewport as WritingBox; p.Content = box.Text; return(p); }
public IContent Load(XmlNode node) { TextParagraph p = new TextParagraph(); if (p.Load(node)) { return(p); } return(null); }
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); }