Exemplo n.º 1
0
        private void ButtonDelete_OnClick(object sender, RoutedEventArgs e)
        {
            var index  = ListViewInvoicesList.SelectedIndex;
            var result = MessageBox.Show("Czy na pewno?", "Usuwanie", MessageBoxButton.OKCancel);

            if (result == MessageBoxResult.OK)
            {
                Invoices.DeleteIncoice(index);
                MessageBox.Show("Pomyślnie usunięto fakturę.", "Sukces!");
            }
        }