예제 #1
0
 public override string ToString()
 {
     return(ParkName.PadRight(17));
 }
예제 #2
0
 public override string ToString()
 {
     return($"{ParkId.ToString()} {ParkName.PadRight(10)} {ParkLocation.PadRight(10)} {ParkEstablishDate.ToString().PadRight(10)} {Area.ToString().PadRight(10)} {Visitors.ToString().PadRight(10)} {ParkDescription.PadRight(10)}");
 }
예제 #3
0
 // Used for viewing the list of all parks. Formats info to look nice
 public override string ToString()
 {
     return(ParkId.ToString().PadRight(3) + ParkName.PadRight(5));
 }
예제 #4
0
 public override string ToString()
 {
     return(ParkId.ToString().PadRight(6) + ParkName.PadRight(6) + Location.PadRight(12) + EstablishedDate.ToString().PadRight(12) +
            Area.ToString().PadRight(10) + Visitors.ToString().PadRight(10) + "\n" + Description);
 }