GameOfLife/View/SettingsWindow.xaml.cs (19 lines of code) (raw):

using System.Windows; namespace GameOfLife.View { /// <summary> /// Interaction logic for SettingsWindow.xaml /// </summary> public partial class SettingsWindow { public SettingsWindow() { InitializeComponent(); } private void OnOk(object sender, RoutedEventArgs e) { DialogResult = true; } private void OnCancel(object sender, RoutedEventArgs e) { DialogResult = false; } } }