private void deleteAdvertisement(object sender, RoutedEventArgs e) { Advertisement ads = ((FrameworkElement)sender).DataContext as Advertisement; ac.deleteAdvertisement(ads); refreshTable(); }
private void deleteAdvertisement(object sender, RoutedEventArgs e) { Advertisement ads = ((FrameworkElement)sender).DataContext as Advertisement; ac.deleteAdvertisement(ads); refreshTable(); }