private void listBox_newOrders_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (listBox_newOrders.SelectedItem != null)
     {
         listBox_shippedOrders.SelectedItem = null;
         CrudOrder.Selected   = CrudOrder.SetSelected <Order>(listBox_newOrders.SelectedItem);
         CrudProduct.Selected = CrudProduct.SetSelected <Product>(CrudProduct.GetProductById(CrudOrder.Selected.ProductId));
         ToggleButtons();
         SetSelectedProductGrid();
     }
 }
 private void listBox_myOrders_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (listBox_myOrders.SelectedItem != null)
     {
         OrderItem selectedItem = listBox_myOrders.SelectedItem as OrderItem;
         CrudOrder.Selected   = CrudOrder.SetSelected <Order>(selectedItem.Order);
         CrudProduct.Selected = CrudProduct.GetProductById(CrudOrder.Selected.ProductId);
         SetSelectedProductGrid();
     }
 }