private void okButton_Click(object sender, RoutedEventArgs e) { // The GameOptions class can save its own settings. _gameOptions.Save(); // Set the return value for the window, and close it. DialogResult = true; Close(); }
private void okButton_Click(object sender, RoutedEventArgs e) { DialogResult = true; _gameOptions.Save(); Close(); }