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