private void button_Start_Click(object sender, EventArgs e) { ed = new Event_Drawing(new Bitmap(pictureBox1.Width, pictureBox1.Height)); ed.ClearEvents(); for (int i = 0; i < numericUpDown_Rocket.Value; i++) { ed.Sign(new Rocket().Draw); } for (int i = 0; i < numericUpDown_Cloud.Value; i++) { ed.Sign(new Cloud().Draw); } pictureBox1.Image = ed.Output(); }
public Form1() { InitializeComponent(); ed = new Event_Drawing(new Bitmap(pictureBox1.Width, pictureBox1.Height)); }