Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Introduction introForm = new Introduction();

            introForm.ShowDialog();
            colorTheme   = DEFAULT;
            pb.BackColor = colorTheme.GetBackground();

            game = new Game(new SolidBrush(colorTheme.GetForeground()), ROWS, COLUMNS, CELL_WIDTH);
            game.InitialGeneration();
            generationTimer.Start();
        }
Exemplo n.º 2
0
 private void lightToolStripMenuItem_Click(object sender, EventArgs e)
 {
     colorTheme = LIGHT;
     ChangeTheme();
     Refresh();
 }
Exemplo n.º 3
0
 private void terminalToolStripMenuItem_Click(object sender, EventArgs e)
 {
     colorTheme = TERMINAL;
     ChangeTheme();
     Refresh();
 }
Exemplo n.º 4
0
 private void darkToolStripMenuItem_Click(object sender, EventArgs e)
 {
     colorTheme = DARK;
     ChangeTheme();
     Refresh();
 }