Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            int row = Convert.ToInt32(textBoxOfRow.Text);
            int col = Convert.ToInt32(textBoxOfColumn.Text);

            DataGridViewUtils.SetColumnAndRow(ref dataGridView1, row, col);
            DataGridViewUtils.CorrectCellWidthAndHeight(ref dataGridView1);
            buttonOfSetup.Enabled = true;
            buttonOfStart.Enabled = false;
        }
Ejemplo n.º 2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     game.Living();
     DataGridViewUtils.GameMapToDataGrid(game.GameMap, ref dataGridView1);
 }
Ejemplo n.º 3
0
 private void button2_Click(object sender, EventArgs e)
 {
     game = new Game(DataGridViewUtils.GameMapFromDataGrid(ref dataGridView1));
     buttonOfStart.Enabled = true;
 }