コード例 #1
0
 private void SetProduct()
 {
     Product = new Product()
     {
         Id                   = Id,
         Brand                = BrandSelected.ToString(),
         Name                 = Name,
         ProductCode          = ProductCode,
         Color                = Color,
         Size                 = Size,
         Box                  = Box,
         Source               = SourceSelected.ToString(),
         DateOfPurchase       = DateOfPurchase.ToShortDateString(),
         PurchasePrice        = PurchasePrice,
         SaleDate             = SaleDate.ToString(),
         SellingPrice         = SellingPrice,
         ShippingPrice        = ShippingPrice,
         PriceWithoutShipping = PriceWithoutShipping,
         Profit               = Profit,
         IsSold               = IsSold
     };
 }
コード例 #2
0
 public override string ToString() => $"buy at {BuyAt} on {BuyDate.ToString("MM/dd/yyyy")}, sale at {SaleAt}, {SaleDate.ToString("MM/dd/yyyy")}";
コード例 #3
0
 public override string ToString()
 {
     return(SaleDate.ToString() + ' ' + SellerTransaction.ToString() + ' ' + GoodsTransaction.ToString() + ' ' + Amount);
 }