public override string ToString() { return("#" + CampgroundId.ToString().PadRight(10) + CampgroundName.PadRight(30) + CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(CampgroundOpenMonth).PadRight(15) + CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(CampgroundCloseMonth).PadRight(15) + DailyCost.ToString("C2").PadRight(10)); }
public override string ToString() { return(CampGroundId.ToString().PadRight(6) + ParkId.ToString().PadRight(6) + CampgroundName.PadRight(10) + OpenMonth.ToString().PadRight(6) + ClosingMonth.ToString().PadRight(6) + DailyFee.ToString().PadRight(6)); }
// Formats campground details to look nice and neat public override string ToString() { return(CampgroundId.ToString().PadRight(15) + CampgroundName.ToString().PadRight(50) + OpenDate.ToString().PadRight(15) + CloseDate.ToString().PadRight(20) + "$" + DailyFee.ToString()); }
public override string ToString() { return(CampgroundId + ")".PadRight(5) + CampgroundName.PadRight(35) + OpenFromMonth.ToString().PadRight(15) + OpenToMonth.ToString().PadRight(15) + "$" + DailyFee.ToString("#.##")); }