Пример #1
0
        public string SpaceAvailabilityToString(int reservationDuration)
        {
            string result = ID.ToString().PadRight(10) + Name.PadRight(27) + DailyRate.ToString("C").PadRight(20) + MaxOccupancy.ToString().PadRight(15) +
                            IsAccessible.ToString().PadRight(15) + (DailyRate * reservationDuration).ToString("C");

            return(result);
        }
Пример #2
0
 public override string ToString()
 {
     return(Id.ToString().PadRight(4) + Name.PadRight(25) + IsAccessible.ToString().PadRight(20) +
            OpenFrom.PadRight(10) + OpenTo.PadRight(10) +
            DailyRate.ToString("C").PadRight(15) + MaxOccupancy.ToString().PadRight(10));
 }