Example #1
0
        /// <summary>
        /// Carlos Arzu
        /// Created: 2019/02/06
        ///
        ///When add button is click, it opens the new form to create a new order.
        /// </summary>
        private void Button_Click_AddOrder(object sender, RoutedEventArgs e)
        {
            AddSpecialOrder order = new AddSpecialOrder();

            order.ShowDialog();
            updateList();
        }
Example #2
0
        /// <summary>
        /// Carlos Arzu
        /// Created: 2019/02/06
        ///
        ///From the grid the user will select and click on the desired order
        ///a read-only form will open with the selected information.
        ///
        /// </summary>
        private void dgListAllOrders_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var selected = (CompleteSpecialOrder)dgListAllOrders.SelectedItem;
            var detailA  = new AddSpecialOrder(selected); // pop up a detail window

            detailA.ShowDialog();
            updateList();
        }