コード例 #1
0
ファイル: iItem.cs プロジェクト: Zebra/iFactr-iOS
 /// <summary>
 /// Initializes a new instance of the <see cref="iItem"/> class using the link address, text, and async value provided.
 /// </summary>
 /// <param name="linkAddress">A <see cref="String"/> representing the link address to navigate to when selected.</param>
 /// <param name="text">A <see cref="String"/> representing the text value.</param>
 /// <param name="async">If <c>true</c>, sets the link rev value to Async.</param>
 public iItem(string linkAddress, string text, bool async)
 {
     Text = text;
     Link = new Link {
         Address = linkAddress, RequestType = async ? UI.RequestType.Async : UI.RequestType.ClearPaneHistory
     };
 }
コード例 #2
0
ファイル: iItem.cs プロジェクト: Zebra/iFactr-iOS
 /// <summary>
 /// Initializes a new instance of the <see cref="iItem"/> class using the link address and text provided.
 /// </summary>
 /// <param name="linkAddress">A <see cref="String"/> representing the link address to navigate to when selected.</param>
 /// <param name="text">A <see cref="String"/> representing the text value.</param>
 public iItem(string linkAddress, string text)
 {
     Text = text;
     Link = new Link {
         Address = linkAddress
     };
 }
コード例 #3
0
ファイル: iItem.cs プロジェクト: Zebra/iFactr-iOS
        /// <summary>
        /// Creates a deep-copy clone of this instance.
        /// </summary>
        public iItem Clone()
        {
            iItem i = (iItem)MemberwiseClone();

            if (Icon != null)
            {
                i.Icon = Icon.Clone();
            }
            if (Link != null)
            {
                i.Link = Link.Clone();
            }
            if (Button != null)
            {
                i.Button = Button.Clone();
            }

            return(i);
        }
コード例 #4
0
ファイル: iItem.cs プロジェクト: Zebra/iFactr-iOS
 /// <summary>
 /// Initializes a new instance of the <see cref="iItem"/> class using the link, text, and async value provided.
 /// </summary>
 /// <param name="link">A <see cref="Link"/> representing the link address to navigate to when selected.</param>
 /// <param name="text">A <see cref="String"/> representing the text value.</param>
 /// <param name="async">If <c>true</c>, sets the link rev value to Async.</param>
 public iItem(Link link, string text, bool async)
 {
     Text             = text;
     Link             = link;
     Link.RequestType = async ? UI.RequestType.Async : UI.RequestType.ClearPaneHistory;
 }
コード例 #5
0
ファイル: iItem.cs プロジェクト: Zebra/iFactr-iOS
 /// <summary>
 /// Initializes a new instance of the <see cref="iItem"/> class using the link and text provided.
 /// </summary>
 /// <param name="link">A <see cref="Link"/> representing the link to navigate to when selected.</param>
 /// <param name="text">A <see cref="String"/> representing the text value.</param>
 public iItem(Link link, string text)
 {
     Text = text;
     Link = link;
 }
コード例 #6
0
 /// <summary>
 /// Appends an inlined link.
 /// </summary>
 /// <param name="htmlText">An <see cref="IHtmlText"/> representing the HTML control.</param>
 /// <param name="link">A <see cref="Link"/> representing the link to append.</param>
 public static void AppendLink(this IHtmlText htmlText, Link link)
 {
     htmlText.Items.Add(link);
 }