예제 #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();
        }
예제 #2
0
 private void lightToolStripMenuItem_Click(object sender, EventArgs e)
 {
     colorTheme = LIGHT;
     ChangeTheme();
     Refresh();
 }
예제 #3
0
 private void terminalToolStripMenuItem_Click(object sender, EventArgs e)
 {
     colorTheme = TERMINAL;
     ChangeTheme();
     Refresh();
 }
예제 #4
0
 private void darkToolStripMenuItem_Click(object sender, EventArgs e)
 {
     colorTheme = DARK;
     ChangeTheme();
     Refresh();
 }