Ejemplo n.º 1
0
        private void PendingOrdersBtnSend_Click(object sender, RoutedEventArgs e)   // Sends pending order one by one
        {
            var         parent      = (sender as Button).Parent;
            TextBlock   cn          = parent.GetChildrenOfType <TextBlock>().First(x => x.Name == "PendingOrdersCustomerName");
            QueuedOrder queuedOrder = store.FindQueued(cn.Text);

            store.SendOrder(queuedOrder);
        }