Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the ReceiptCard class.
 /// </summary>
 /// <param name="title">Title of the card</param>
 /// <param name="items">Array of Receipt Items</param>
 /// <param name="facts">Array of Fact Objects   Array of key-value
 /// pairs.</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 should be
 /// paid)</param>
 /// <param name="tax">Total amount of TAX paid(or should be
 /// paid)</param>
 /// <param name="vat">Total amount of VAT paid(or should be
 /// paid)</param>
 /// <param name="buttons">Set of actions applicable to the current
 /// card</param>
 public ReceiptCard(string title = default(string), IList <ReceiptItem> items = default(IList <ReceiptItem>), IList <Fact> facts = default(IList <Fact>), CardAction tap = default(CardAction), string total = default(string), string tax = default(string), string vat = default(string), IList <CardAction> buttons = default(IList <CardAction>))
 {
     Title   = title;
     Items   = items;
     Facts   = facts;
     Tap     = tap;
     Total   = total;
     Tax     = tax;
     Vat     = vat;
     Buttons = buttons;
     CustomInit();
 }
Ejemplo n.º 2
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();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the ThumbnailCard 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 ThumbnailCard(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();
 }