private void insertToolStripMenuItem_Click(object sender, EventArgs e) { Random random = new Random(); ShapesList.AddShape(random.Next(1, Size.Width), random.Next(1, Size.Height), Color, Type); Invalidate(); }
private void Form1_MouseDoubleClick(object sender, MouseEventArgs e) { ShapesList.AddShape(e.X, e.Y, Color, Type); Invalidate(); }