Exemplo n.º 1
0
 public override Product ProductDisplay()
 {
     _ = new ConsoleChainer()
         .DisplayTextInRow(typeof(Violin).Name + "\t")
         .DisplayTextInRow(ProductID.ToString() + "\t")
         .DisplayTextInRow(Name + "\t\t")
         .DisplayTextInRow(Price.ToString() + "\t")
         .DisplayTextInRow(Origin + "\t\t")
         .DisplayTextInRow(IsBowIncluded.ToString() + "\t\t")
         .DisplayTextInRow(IsReserved.ToString() + "\t\t")
         .DisplayTextInRow(ReservationTime[0] + "/" + ReservationTime[1] + "/" + ReservationTime[2])
         .DisplayTextInColumn("");
     return(this);
 }
Exemplo n.º 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);
        }