Esempio n. 1
0
        public ViewOrders()
        {
            InitializeComponent();

            OrderManager om = new OrderManager(new UnitOfWork());

            Orders = new OrderGrid(OrdersGrid, om.GetAll());
            Orders.SetDeleteButton(Button_DeleteOrders);
            Orders.SetEditButton(Button_EditOrder);

            new OrderAddForm(Input_OrderFirstname, Input_OrderLasttname, Input_OrderEmail, Input_OrderPhone, Input_OrderItem, Input_OrderItemQuantity, Input_OrderItems, Button_AddOrderItem, Button_CreateOrder);
        }