Esempio n. 1
0
 public override string ToString()
 {
     return(OrderedQuantity.ToString().PadLeft(4) + " " + DrinkName.PadRight(33) + Payable().ToString().PadLeft(10) + " Ft");;
 }
Esempio n. 2
0
 public override string ToString()
 {
     return(OrderedQuantity.ToString().PadLeft(4) + " " + DrinkName.PadRight(33) + Payable().ToString().PadLeft(10) + "Ft");
     //PadLeft and PadRight methods only work with Consolas and Courier fonts.
 }