示例#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();
 }