예제 #1
0
        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!");
        }
예제 #2
0
 public DeleteApp(Business business)
 {
     InitializeComponent();
     Business = business;
     DataGridApps.DataContext = AppView.ConvertTo(Business.GetApps());
 }