Beispiel #1
0
 public Product ConfirmReservation()
 {
     if (IsReserved)
     {
         Chainer
         .DisplayTextInRow("Product is already reserved!\n")
         .PressToContinue();
     }
     else
     {
         IsReserved = true;
     }
     return(this);
 }
Beispiel #2
0
        public override Product ProductDisplay()
        {
            var chainer = new ConsoleChainer();

            chainer
            .DisplayTextInRow(typeof(Guitar).Name + "\t")
            .DisplayTextInRow(ProductID.ToString() + "\t")
            .DisplayTextInRow(Name + "\t\t")
            .DisplayTextInRow(Price.ToString() + "\t")
            .DisplayTextInRow(Origin + "\t\t")
            .DisplayTextInRow("NaN\t\t")
            .DisplayTextInRow(IsReserved.ToString() + "\t\t")
            .DisplayTextInRow(ReservationTime[0] + "/" + ReservationTime[1] + "/" + ReservationTime[2])
            .DisplayTextInColumn("");

            return(this);
        }