예제 #1
0
 private void Edit_Click(object sender, RoutedEventArgs e)
 {
     if (dgReceiving.SelectedIndex < 0)
     {
         MessageBox.Show("You must have a ticket selected");
     }
     else
     {
         ReceivingTicket ticket     = (ReceivingTicket)dgReceiving.SelectedItem;
         var             viewTicket = new OrderRecieving(ticket);
         viewTicket.ShowDialog();
     }
 }
        /// <summary>
        /// Kevin Broskow
        /// 3/29/2019
        /// Added functionality to recieve external orders
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnReceived_Click(object sender, RoutedEventArgs e)
        {
            if ((SupplierOrder)dgSupplierOrders.SelectedItem != null)
            {
                _supplierOrder = (SupplierOrder)dgSupplierOrders.SelectedItem;

                var orderReceived = new OrderRecieving(_supplierOrder);
                var result        = orderReceived.ShowDialog();
            }
            else
            {
                MessageBox.Show("You must select an order");
            }
        }
예제 #3
0
 private void btnCompleteOrder_Click(object sender, RoutedEventArgs e)
 {
     if (dgListAllOrders.SelectedIndex < 0)
     {
         MessageBox.Show("You must have an order selected");
     }
     else
     {
         var order     = (CompleteSpecialOrder)dgListAllOrders.SelectedItem;
         var receiving = new OrderRecieving(order);
         receiving.ShowDialog();
         updateList();
     }
 }