Exemple #1
0
        private void radial_button_Click(object sender, EventArgs e)
        {
            int r      = Decimal.ToInt32(radiusUpDown.Value);
            int number = Decimal.ToInt32(numberRadialUpDown.Value);

            if (!isPlaying)
            {
                Nucleation.Radial(grid, grainGrowth, r, number, g, alertTextBox, this);
                pictureBox1.Image = simulationBitmap;
            }
            else
            {
                this.tab      = Nucleation.Radial(grid, grainGrowth, r, number, alertTextBox, this);
                clickedButton = true;
            }
        }
Exemple #2
0
        private void random_button_Click(object sender, EventArgs e)
        {
            int number = Decimal.ToInt32(numberRandomUpDown.Value);

            if (!isPlaying)
            {
                Nucleation.Random(grid, grainGrowth, number, g);
                pictureBox1.Image = simulationBitmap;
            }
            else
            {
                this.tab = Nucleation.Random(grid, grainGrowth, number);

                clickedButton = true;
            }
        }
Exemple #3
0
        private void homogeneus_button_Click(object sender, EventArgs e)
        {
            int row = Decimal.ToInt32(rowUpDown.Value);
            int col = Decimal.ToInt32(colUpDown.Value);


            if (!isPlaying)
            {
                Nucleation.Homogeneus(grid, grainGrowth, g, row, col);
                pictureBox1.Image = simulationBitmap;
            }
            else
            {
                this.tab      = Nucleation.Homogeneus(grid, grainGrowth, row, col);
                clickedButton = true;
            }
        }