Example #1
0
File: VTNz.cs Project: axfbh/cSharp
 public void orderItem(WrapInspection wrapInspection)
 {
     this.wrapInspection = wrapInspection;
     list.Add(this.wrapInspection);
     _totalOrder++;
     _qty = _qty + wrapInspection.showPrice();
 }
Example #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());
        }