Exemplo n.º 1
0
        public override string ToString()
        {
            string result = string.Format("{0, 10} - {1, 10} {2, 9} {3, 30} {4, 10} {5, 25} {6, 11}",

                                          From_date.ToShortDateString().PadRight(10),                   //{0}

                                          To_date.ToShortDateString().PadRight(10),                     //{1}

                                          Reservation_id.ToString().PadRight(6),                        //{2}

                                          Name.PadRight(30),                                            //{3}

                                          Site_number.ToString().PadRight(5),                           //{4}

                                          Campground.PadRight(25),                                      //{5}

                                          Create_date.ToShortDateString().PadRight(10));                //{6}

            return(result);
        }
Exemplo n.º 2
0
 public override string ToString()
 {
     return($"{Site_id.ToString().PadRight(10)} {Site_number.ToString().PadRight(10)} {Max_occupancy.ToString().PadRight(15)} {Accessible.ToString().PadRight(24)} {Max_rv_length.ToString().PadRight(15)} {Utilities.ToString().PadRight(14)}");
 }
Exemplo n.º 3
0
 public override string ToString()
 {
     return(Site_number.ToString().PadRight(15) + Max_occupancy.ToString().PadRight(15) + Accessible.ToString().PadRight(15) + Max_RV_length.ToString().PadRight(15) + Utilities.ToString().PadRight(15));
 }