private void UserControl_MouseDoubleClick(object sender, MouseButtonEventArgs e) { CellInput ci = new CellInput(); ci.ShowDialog(); context.initFoxes = ci.Fxes; context.initRabbits = ci.Rabs; context.initVegetation = ci.Veg; }
private void UserControl_MouseDoubleClick(object sender, MouseButtonEventArgs e) { CellInput ci = new CellInput(); ci.ShowDialog(); context.initFoxes = ci.Fxes; context.initRabbits = ci.Rabs; context.initVegetation = ci.Veg; }
private void Window_Loaded(object sender, RoutedEventArgs e) { GameConfiguration.initAll(); CellInput ci = new CellInput(); ci.ShowDialog(); GameConfiguration.cells = new List<List<GameCellVM>>(); for (int i = 0; i < 8; i++) { gcCtrls[i] = new GameCellControl[8]; GameConfiguration.cells.Add(new List<GameCellVM>()); for (int j = 0; j < 8; j++) { gcCtrls[i][j] = new GameCellControl(); GameConfiguration.cells[i].Add(new GameCellVM()); GameConfiguration.cells[i][j].initFoxes = ci.Fxes; GameConfiguration.cells[i][j].initRabbits = ci.Rabs; GameConfiguration.cells[i][j].initVegetation = ci.Veg; gcCtrls[i][j].context = GameConfiguration.cells[i][j]; CellsLayoutContainer.Children.Add(gcCtrls[i][j]); } } }
private void Window_Loaded(object sender, RoutedEventArgs e) { GameConfiguration.initAll(); CellInput ci = new CellInput(); ci.ShowDialog(); GameConfiguration.cells = new List <List <GameCellVM> >(); for (int i = 0; i < 8; i++) { gcCtrls[i] = new GameCellControl[8]; GameConfiguration.cells.Add(new List <GameCellVM>()); for (int j = 0; j < 8; j++) { gcCtrls[i][j] = new GameCellControl(); GameConfiguration.cells[i].Add(new GameCellVM()); GameConfiguration.cells[i][j].initFoxes = ci.Fxes; GameConfiguration.cells[i][j].initRabbits = ci.Rabs; GameConfiguration.cells[i][j].initVegetation = ci.Veg; gcCtrls[i][j].context = GameConfiguration.cells[i][j]; CellsLayoutContainer.Children.Add(gcCtrls[i][j]); } } }