private bool ValidateAll() { bool result = false; try { viewModel.Validate(); result = true; } catch (Exception ex) { MessageBox.Show(ex.Message); } return(result); }