pla-01/Life/MainWindow.xaml.cs
2019-10-28 21:29:41 +01:00

29 lines
639 B
C#

using System.Windows;
using Life.Automaton;
using Life.ViewModel;
namespace Life
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public AutomatonViewModel ViewModel;
public MainWindow()
{
ViewModel = new AutomatonViewModel()
{
Automaton = new GameOfLife(20, 20),
Size = 16,
Separation = 2,
Steps = 1,
};
DataContext = ViewModel;
InitializeComponent();
}
}
}