Exemplo n.º 1
0
 private void dgMain_PreviewKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Delete)
     {
         if (_viewModel.AllowDelete)
         {
             _viewModel.DeleteCompanyCommand();
             return;
         }
     }
 }