public Game(MyCellVM myCellVm) { InitializeComponent(); this.myCellVm = myCellVm; myCellVm.MyCellsModel.RandFilling(); myCellVm.Timer.Start(); DataContext = myCellVm; }
public MainWindow() { myCellVm = new MyCellVM(new Setting()); InitializeComponent(); }