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