Beispiel #1
0
        /**m* SpringCardApplication/RtdMediaControl.GetContentEx
         *
         * SYNOPSIS
         *   public RtdMedia GetContentEx()
         *
         * DESCRIPTION
         *   Constructs a RtdMedia object, using the values of the different fields in the form
         *   and returns this object
         *
         **/
        public RtdMedia GetContentEx()
        {
            SaveString("Media.Type", cbType.Text);
            SaveString("Media.Text", eContent.Text);

            RtdMedia t = new RtdMedia(cbType.Text, eContent.Text);

            return(t);
        }
Beispiel #2
0
 /**m* SpringCardApplication/RtdMediaControl.SetContent
  *
  * SYNOPSIS
  *   public void SetContent(RtdMedia media)
  *
  * DESCRIPTION
  *   Only called by the "public override void SetContent(Ndef ndef)" method, if the ndef is an Rtdmedia object.
  *   It prints on the form the content of the RtdMedia object passed as a parameter.
  *
  **/
 public void SetContent(RtdMedia media)
 {
     ClearContent();
     cbType.Text   = media.TYPE;
     eContent.Text = media.TextContent;
 }