private void DeleteButton_Click(object sender, RoutedEventArgs e)
        {
            SQLiteDataAccess.deleteCustomer(cust);
            foreach (Order o in orders)
            {
                SQLiteDataAccess.deleteOrderDetailsByOrderID(o.Order_ID);
                SQLiteDataAccess.deleteOrder(o.Order_ID);
            }
            MessageBox.Show("Customer info deleted.");

            MenuWindow menuWindow = new MenuWindow();

            menuWindow.Show();
            this.Close();
        }
        private void DeleteOrderButton_Click(object sender, RoutedEventArgs e)
        {
            string s     = OrderListBox.SelectedItem.ToString();
            Order  order = new Order();

            foreach (Order o in orders)
            {
                if (o.compareTo(s))
                {
                    order = o;
                }
            }

            SQLiteDataAccess.deleteOrder(order.Order_ID);
            SQLiteDataAccess.deleteOrderDetailsByOrderID(order.Order_ID);

            LoadAll();
        }