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 }; }
public override string ToString() => $"buy at {BuyAt} on {BuyDate.ToString("MM/dd/yyyy")}, sale at {SaleAt}, {SaleDate.ToString("MM/dd/yyyy")}";
public override string ToString() { return(SaleDate.ToString() + ' ' + SellerTransaction.ToString() + ' ' + GoodsTransaction.ToString() + ' ' + Amount); }