public void Delete() { var result = MessageBox.Show("Are You sure you want to delete facture?", "Delete", MessageBoxButton.YesNo, MessageBoxImage.Question); if (result == MessageBoxResult.Yes) { Facture.Delete(FactureDetailsList); MessageBox.Show("Facture Deleted", "Success", MessageBoxButton.OK, MessageBoxImage.Information); } }