Пример #1
0
        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();
        }
Пример #2
0
 private void okButton_Click(object sender, RoutedEventArgs e)
 {
     DialogResult = true;
     _gameOptions.Save();
     Close();
 }