Example #1
0
 public override string Log() => $"{AssetId.ToString().PadRight(15)}{Category.PadRight(17)}{Office.Name.PadRight(15)}{ProdName.PadRight(15)}{ModelName.PadRight(15)}{PurchaseDate.ToShortDateString().PadRight(15)}{Price.ToString().PadRight(15)}{Currency.PadRight(15)} {ExchangeRate.ToString().PadRight(10)}USD";
Example #2
0
 public override string ToString()
 {
     return($"{Brand,-10} {SN,-10} {PurchaseDate.ToShortDateString(),-15} {State,-3}");
 }
Example #3
0
 public override string ToString() => $"{PurchaseDate.ToShortDateString()} ({Quantity} x {Price.ToCurrency(2)})";
Example #4
0
 public override string ToString()
 {
     return($"{Title} {Price:C} {PurchaseDate.ToShortDateString()} [{Genre.ToUpper()}]");
 }
Example #5
0
 public override string Log() => $"{Category.PadRight(15)}{ProdName.PadRight(8)}{ModelName.PadRight(8)}{PurchaseDate.ToShortDateString().PadRight(8)}\t{Price}";
Example #6
0
 public override string Log() => $"{Location.PadRight(20)}{Category.PadRight(15)}{ProdName.PadRight(15)}{ModelName.PadRight(8)}{PurchaseDate.ToShortDateString().PadRight(8)}\t{Price.ToString().PadRight(10)}{CurrencyFormat.PadLeft(10)}";