Esempio n. 1
0
        /// <summary>
        /// Обработчик нажатия кнопки "Запуск без прорисовки"
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void withoutPaintingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CadrForm cf = new CadrForm(Cells, Evolut, r_surv, r_born, thorChB.Checked);

            cf.FormClosing += (sender1, e1) =>
            {
                if (cf.gen() != null)
                {
                    evolution += (ulong)cf.cadrValue();
                    toolStripLabel_steps.Text = STEPS + evolution;

                    Cells = cf.gen();
                    paint(Cells);
                }
            };

            cf.ShowDialog();
        }
Esempio n. 2
0
        /// <summary>
        /// Обработчик нажатия кнопки "Запуск без прорисовки"
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void withoutPaintingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CadrForm cf = new CadrForm(Cells, Evolut, r_surv, r_born, thorChB.Checked);

            cf.FormClosing += (sender1, e1) =>
            {
                if (cf.gen() != null)
                {
                    evolution += (ulong)cf.cadrValue();
                    toolStripLabel_steps.Text = STEPS + evolution;

                    Cells = cf.gen();
                    paint(Cells);
                }
            };

            cf.ShowDialog();
        }