// // Import users from a CSV file // private void ImportUsersButton_Click(object sender, RoutedEventArgs e) { try { ActionLogger.Log(GetType().FullName + nameof(ImportUsersButton_Click), userRole, "<Import_Users_Start>"); usersViewModel.ImportUsers(userRole); RefreshGrid(); } catch (FileNotFoundException ex) { MessageBox.Show($"Cannot find path to file '{ex.Message}'", "File Not Found", MessageBoxButton.OK); } catch (FileFormatException) { } catch (Exception ex) { } finally { ActionLogger.Log(GetType().FullName + nameof(ImportUsersButton_Click), userRole, "<Import_Users_End>"); } }