Esempio n. 1
0
        public IContent CreateRiddle()
        {
            TextParagraph p   = new TextParagraph();
            WritingBox    box = Viewport as WritingBox;

            p.Content = box.Text;
            return(p);
        }
Esempio n. 2
0
        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);
        }