Ejemplo n.º 1
0
        public void ProcessSelectStoryNameButton(DataItem sentData)
        {
            PrintableString[] printableDescription = new PrintableString[1];
            //Cast sentData as IPrintable to access explictly implemented Text property.
            IPrintable journalDescriptionPrintable = (IPrintable)sentData;

            printableDescription[0] = new PrintableString(journalDescriptionPrintable.PrintableText);
            SetDisplayableArrayData <DataItem>(printableDescription, 3);
            if (!(sentData is INestable <DataItem>))
            {
                return;
            }
            INestable <DataItem> returnable = (INestable <DataItem>)sentData;

            SetDisplayableArrayData <DataItem>(returnable.GetArray(), 2);
        }
Ejemplo n.º 2
0
 public void Set(DataItem sentData)
 {
     if (textElement != null)
     {
         textElement.SetText(sentData.Text);
     }
     if (subPanel == null)
     {
         return;
     }
     if (sentData is INestable <DataItem> )
     {
         INestable <DataItem> returnable = (INestable <DataItem>)sentData;
         subPanel.SetData(returnable.GetArray());
     }
 }