Example #1
0
        private void addOrderButton_Click(object sender, RoutedEventArgs e)
        {
            var addOrderScreen = new AddOrderScreen();

            if (addOrderScreen.ShowDialog() == true)
            {
                var newOrder = addOrderScreen.NewOrder;
                OrdersDAO.InsertOrder(newOrder);
                DisplayOrders();
            }
        }