Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 private void Form1_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     ShapesList.AddShape(e.X, e.Y, Color, Type);
     Invalidate();
 }