예제 #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();
 }