Exemple #1
0
 public void orderItem(WrapInspection wrapInspection)
 {
     this.wrapInspection = wrapInspection;
     list.Add(this.wrapInspection);
     _totalOrder++;
     _qty = _qty + wrapInspection.showPrice();
 }
Exemple #2
0
        static void Main(string[] args)
        {
            WrapInspection wrap;
            VTNz           vtnz = new VTNz("yellow store");

            wrap = new WrapInspection("yellow book", 100);
            vtnz.orderItem(wrap);
            //Console.WriteLine(vtnz.showItemDetail());
            wrap = new WrapInspection("blue book", 100);
            vtnz.orderItem(wrap);
            Console.WriteLine(vtnz.showItemDetail());
            Console.WriteLine(vtnz.showTotalOrder());
        }