/// <summary>Initializes a new instance of the <see cref="BasicCard"/> class.</summary>
 /// <param name="title">Title of the card.</param>
 /// <param name="subtitle">Subtitle of the card.</param>
 /// <param name="text">Text for the card.</param>
 /// <param name="images">Array of images for the card.</param>
 /// <param name="buttons">Set of actions applicable to the current card.</param>
 /// <param name="tap">This action will be activated when user taps on the card itself.</param>
 public BasicCard(string title = default, string subtitle = default, string text = default, IList <CardImage> images = default, IList <CardAction> buttons = default, CardAction tap = default)
 {
     Title    = title;
     Subtitle = subtitle;
     Text     = text;
     Images   = images;
     Buttons  = buttons;
     Tap      = tap;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the HeroCard class.
 /// </summary>
 /// <param name="title">Title of the card</param>
 /// <param name="subtitle">Subtitle of the card</param>
 /// <param name="text">Text for the card</param>
 /// <param name="images">Array of images for the card</param>
 /// <param name="buttons">Set of actions applicable to the current
 /// card</param>
 /// <param name="tap">This action will be activated when user taps on
 /// the card itself</param>
 public HeroCard(string title = default(string), string subtitle = default(string), string text = default(string), IList <CardImage> images = default(IList <CardImage>), IList <CardAction> buttons = default(IList <CardAction>), CardAction tap = default(CardAction))
 {
     Title    = title;
     Subtitle = subtitle;
     Text     = text;
     Images   = images;
     Buttons  = buttons;
     Tap      = tap;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReceiptCard"/> class.
 /// </summary>
 /// <param name="title">Title of the card.</param>
 /// <param name="facts">Array of Fact objects.</param>
 /// <param name="items">Array of Receipt Items.</param>
 /// <param name="tap">This action will be activated when user taps on
 /// the card.</param>
 /// <param name="total">Total amount of money paid (or to be
 /// paid).</param>
 /// <param name="tax">Total amount of tax paid (or to be paid).</param>
 /// <param name="vat">Total amount of VAT paid (or to be paid).</param>
 /// <param name="buttons">Set of actions applicable to the current
 /// card.</param>
 public ReceiptCard(string title = default(string), IList <Fact> facts = default(IList <Fact>), IList <ReceiptItem> items = default(IList <ReceiptItem>), CardAction tap = default(CardAction), string total = default(string), string tax = default(string), string vat = default(string), IList <CardAction> buttons = default(IList <CardAction>))
 {
     Title   = title;
     Facts   = facts;
     Items   = items;
     Tap     = tap;
     Total   = total;
     Tax     = tax;
     Vat     = vat;
     Buttons = buttons;
     CustomInit();
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the ReceiptItem class.
 /// </summary>
 /// <param name="title">Title of the Card</param>
 /// <param name="subtitle">Subtitle appears just below Title field,
 /// differs from Title in font styling only</param>
 /// <param name="text">Text field appears just below subtitle, differs
 /// from Subtitle in font styling only</param>
 /// <param name="image">Image</param>
 /// <param name="price">Amount with currency</param>
 /// <param name="quantity">Number of items of given kind</param>
 /// <param name="tap">This action will be activated when user taps on
 /// the Item bubble.</param>
 public ReceiptItem(string title = default(string), string subtitle = default(string), string text = default(string), CardImage image = default(CardImage), string price = default(string), string quantity = default(string), CardAction tap = default(CardAction))
 {
     Title    = title;
     Subtitle = subtitle;
     Text     = text;
     Image    = image;
     Price    = price;
     Quantity = quantity;
     Tap      = tap;
     CustomInit();
 }