/**m* SpringCardApplication/RtdTextControl.GetContentEx * * SYNOPSIS * public RtdTextControl GetContentEx() * * DESCRIPTION * Constructs a RtdText object, using the values of the different fields in the form * and returns this object * **/ public RtdText GetContentEx() { if (!eValue.Text.Equals("")) { SaveString("Text.Value", eValue.Text); SaveString("Text.Lang", eLang.Text); } RtdText t = new RtdText(eValue.Text, eLang.Text); return(t); }
/**m* SpringCardApplication/RtdSmartPoster.GetContentEx * * SYNOPSIS * public RtdSmartPoster GetContentEx() * * DESCRIPTION * Constructs a RtdSmartPoster object, using the values of the different fields in the form * and returns this object * **/ public RtdSmartPoster GetContentEx() { RtdSmartPoster smartPoster = new RtdSmartPoster(); smartPoster.Uri = nfcRtdUriControl1.GetContentEx(); RtdText t = nfcRtdTextControl1.GetContentEx(); if (t != null) { smartPoster.Title.Add(t); } switch (ACT_Combo.SelectedIndex) { case 1: /* do */ smartPoster.Action = new RtdSmartPosterAction(0x00); break; case 2: /* save */ smartPoster.Action = new RtdSmartPosterAction(0x01); break; case 3: /* open */ smartPoster.Action = new RtdSmartPosterAction(0x02); break; default: break; } if (!SIZE_txt.Text.Equals("")) { try { smartPoster.TargetSize = new RtdSmartPosterTargetSize(Int32.Parse(SIZE_txt.Text)); } catch { } } if (!cbMime.Text.Equals("")) { smartPoster.TargetType = new RtdSmartPosterTargetType(cbMime.Text); } return(smartPoster); }
/**m* SpringCardApplication/RtdTextControl.SetContent * * SYNOPSIS * public void SetContent(RtdText text) * * DESCRIPTION * Only called by the "public override void SetContent(Ndef ndef)" method, if the ndef is an RtdTextControl object. * It prints on the form the content of the RtdTextControl object passed as a parameter. * **/ public void SetContent(RtdText text) { ClearContent(); eValue.Text = text.Value; eLang.Text = text.Lang; }