Пример #1
0
 private void addShape(Shape item)
 {
     shapes.Add(item);
     ShapesList.Items.Add(item.Info());
 }
Пример #2
0
 private void iPaint_MouseMove(object sender, MouseEventArgs e)
 {
     if (radioCross.Checked)
     {
         tempShape = new Cross(e.X, e.Y);
         Refresh();
     }
     else
     {
         if (flag)
         {
             if (radioLine.Checked)
             {
                 tempShape = new Line(LS, e.Location);
             }
             if (radioCircle.Checked)
             {
                 tempShape = new Circle(LS, e.Location);
             }
             Refresh();
         }
     }
 }