Beispiel #1
0
        private void btn_Delete_Click(object sender, RoutedEventArgs e)
        {
            dynamic           row  = lvTaxs.SelectedItem;
            ConfirmationPopup form = new ConfirmationPopup((string)Application.Current.Resources["confirm_message_Tax"], header, true);

            form.ShowDialog();
            if (Common._isChecked)
            {
                controller.DeleteTax(row.TaxCode);
                ResponseVm responce = controller.GetTax();
                _taxs = responce.Response.Cast <TaxModel>().ToList();
                lvTaxs.ItemsSource = _taxs;
                Common.Notification((string)Application.Current.Resources["success_message_Tax"], header, false);
                DisableButtons();
                //ConfirmationPopup form1 = new ConfirmationPopup(msg, header, false);
                //form1.ShowDialog();
            }
        }