private void numericUpDown1_ValueChanged(object sender, EventArgs e) { drawer = new Drawer(pictureBox1.Width, pictureBox1.Height) { Function = new Function((float)numericUpDown1.Value), }; }
private void button1_Click(object sender, EventArgs e) { timer1.Start(); drawer = new Drawer(pictureBox1.Width, pictureBox1.Height) { Function = new Function((float)numericUpDown1.Value), }; }
private void Redraw() { drawer = new Drawer(pictureBox1.Width, pictureBox1.Height) { Function = new Function((float)numericUpDown1.Value), RotateAngle = (float)numericUpDown2.Value, FigureCount = (int)numericUpDown3.Value }; drawer.DrawImage(); if(checkBox2.Checked) drawer.DrawMirrorImage(); drawer.Draw(pictureBox1.CreateGraphics()); }