private void OkButton_Click(object sender, RoutedEventArgs e)
 {
     /*  using (var stream = File.Open("GameOptions.xml", FileMode.Create))
      * {
      *    var serializer = new XmlSerializer(typeof(GameOptions));
      *    serializer.Serialize(stream, gameOptions);
      * }*/
     DialogResult = true;
     gameOptions.Save();
     Close();
 }
Example #2
0
 private void okButton_Click(object sender, RoutedEventArgs e)
 {
     DialogResult = true;
     gameOptions.Save();
     Close();
 }