/// <summary>
 /// Event for the complete order click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void CompleteOrderClick(object sender, RoutedEventArgs e)
 {
     reciept = new PrintReciept(order, this);
     reciept.printItems();
     order         = new Order();
     o.DataContext = order;
     o.SwapToMenu();
 }
 void CreditClick(object sender, RoutedEventArgs e)
 {
     if (o.DataContext is Order order)
     {
         if (CardReader.RunCard(order.Total) == CardTransactionResult.Approved)
         {
             reciept = new PrintReciept(order, "Credit");
             reciept.printItems();
             order         = new Order();
             o.DataContext = order;
             o.SwapToMenu();
         }
         else
         {
             order.Clear();
             o.SwapToMenu();
         }
     }
 }