private void ButtonDeletion_Click(object sender, RoutedEventArgs e) { var dataContext = (IEnumerable <AppView>)DataGridApps.DataContext; Business.Remove(dataContext.Where(it => it.Checked == true)); DataGridApps.DataContext = AppView.ConvertTo(Business.GetApps()); MessageBox.Show("Successful!"); }
public DeleteApp(Business business) { InitializeComponent(); Business = business; DataGridApps.DataContext = AppView.ConvertTo(Business.GetApps()); }