Example #1
0
 public override string ToString()
 {
     return("Quarto " + NumeroQuarto
            + ", check-in: " + Checkin.ToString("dd/MM/yyyy")
            + ", check-out: " + Checkout.ToString("dd/MM/yyyy")
            + ", " + Duration() + " noites");
 }
Example #2
0
 public override string ToString()
 {
     return("Reservation: Room " + RoomNumber
            + ", check-in: " + Checkin.ToString("dd/MM/yyyy")
            + ", check-out: " + Checkout.ToString("dd/MM/yyyy")
            + ", " + Duration() + " nights");
 }
Example #3
0
 public override string ToString()
 {
     return("Room "
            + RoomNumber
            + ", CheckIn"
            + Checkin.ToString("dd/MM/yyyy") // Define a forma padrĂ£o para o output da data
            + ", Checkout"
            + Checkout.ToString("dd/MM/yyyy")
            + ", "
            + Duration()
            + " nights");
 }
Example #4
0
 public override string ToString()
 {
     return("Room "
            + RoomNumber
            + ", check-in "
            + Checkin.ToString("dd/MM/yyyy")
            + "check-out"
            + Checkout.ToString("dd/MM/yyyy")
            + ", "
            + duration()
            + " nights");
 }
Example #5
0
 public override string ToString()
 {
     return("Reservation: Room "
            + NumeroQuarto
            + ", check-in: "
            + Checkin.ToString("dd/MM/yyyy")
            + ", check-out: "
            + Checkout.ToString("dd/MM/yyyy")
            + ", "
            + Duracao()
            + " nights");
 }
Example #6
0
 public override string ToString()
 {
     return("Room: "
            + RoomNumber
            + "Checkin: "
            + Checkin.ToString("dd/MM/yyyy")
            + "CheckOut: "
            + Checkout.ToString("dd/MM/yyyy")
            + ", "
            + Duration()
            + "Nights: ");
 }
Example #7
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("Reservation: Room: ");
            sb.Append(RoomNumber);
            sb.Append(", check-in: ");
            sb.Append(Checkin.ToString("dd/MM/yyyy"));
            sb.Append(",check-out: ");
            sb.Append(Checkout.ToString("dd/MM/yyyy"));
            sb.Append(", ");
            sb.Append(Duration());
            sb.Append(" nights");
            return(sb.ToString());
        }
Example #8
0
        public override string ToString()
        {
            string night = Duration() > 1 ? " nights" : " night";

            return("Room "
                   + RoomNumber
                   + ", "
                   + "Checkin: "
                   + Checkin.ToString("dd/MM/yyyy")
                   + ", "
                   + "Checkout: "
                   + Checkout.ToString("dd/MM/yyyy")
                   + ", "
                   + Duration()
                   + night);
        }
Example #9
0
 public override string ToString()
 {
     return($"Quarto {NumeroQuarto}, check-in: {Checkin.ToString("dd/MM/yyyy")}, check-out: {Checkout.ToString("dd/MM/yyyy")}, {Duracao()} noites");
 }
Example #10
0
 public override string ToString()
 {
     return($"ROOM {RoomNumber}, check-in: {Checkin.ToString("dd/MM/yyyy")}," +
            $" check-out: {Checkout.ToString("dd/MM/yyyy")}, {Duration()} nights");
 }