private void okButton_Click(object sender, RoutedEventArgs e) { bool isValidPath = isValidSelectedPath(); EventLogger.logEvent("okButton_Click", new Dictionary <string, object> { { "isValidPath", isValidPath } }); if (isValidPath) { result = GameFilesWindowResult.useSelectedPath; this.Close(); return; } MessageBox.Show(R.NO_GAME_FILES_FOUND_ERROR_MESSAGE, R.ERROR); }
private void exitButton_Click(object sender, RoutedEventArgs e) { EventLogger.logEvent("exitButton_Click"); result = GameFilesWindowResult.exit; this.Close(); }