示例#1
0
 public Order(Customer customer)
 {//we will add loop to add multiple controls...
     InitializeComponent();
     orderController = new PlaceOrderController(customer);
     orderController.ReadItems();
     orderController.LoadItemWindow(OrderPanel);
 }
示例#2
0
 public Order(bool HideCArt)
 {//view only contructor....
     InitializeComponent();
     Cart.Hide();
     panel1.Hide();
     orderController = new PlaceOrderController();
     orderController.ReadItems();
     orderController.LoadItemWindow(OrderPanel, true);
 }