예제 #1
0
        private void orderDeleteButton_Click(object sender, RoutedEventArgs e)
        {
            BillingOperation order = (BillingOperation)billingDataGrid.SelectedItem;

            if (order != null)
            {
                BillingService billingService = new BillingService();

                if (MessageBox.Show("Are you want to Delete ?", "Confirm", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
                {
                    billingService.DeleteOrder(order.OrderId);
                }

                LoadData();
            }
        }