Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="invoiceInformation"></param>
 public InvoiceForm(Invoice invoiceInformation)
 {
     InitializeComponent();
     invoiceTitle.Text      = invoiceInformation.Title;
     invoiceCustomer.Text   = invoiceInformation.Customer;
     purchaseDate.Text      = invoiceInformation.Timestamp.ToString("F");
     purchaseQuantity.Text  = invoiceInformation.Quantity.ToString();
     purchaseTotal.Text     = LibrettoCommon.FormatCurrency(invoiceInformation.Total);
     invoiceIdentifier.Text = invoiceInformation.Identifier.ToString("B").ToUpper();
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="transactionInformation"></param>
 /// <returns></returns>
 private static ListViewItem ParseTransaction(WarehouseOrder transactionInformation)
 {
     return(new ListViewItem(LibrettoCommon.FormatDate(transactionInformation.Timestamp))
     {
         Name = LibrettoCommon.FormatGuid(transactionInformation.Identifier),
         SubItems =
         {
             LibrettoCommon.FormatGuid(transactionInformation.Identifier),
             transactionInformation.Title,
             Convert.ToString(transactionInformation.Quantity),
             LibrettoCommon.FormatCurrency(transactionInformation.Total)
         }
     });
 }