Пример #1
0
 private void MainScreen_MouseLeave(object sender, EventArgs e)
 {
     tempShape = null;
     this.Refresh();
 }
Пример #2
0
 private void MainScreen_MouseMove(object sender, MouseEventArgs e)
 {
     if (rb_Cross.Checked)
     {
         tempShape = (new Cross(e.X, e.Y));
     }
     if (rb_Circle.Checked)
     {
         if (!IsShapeStart)
         {
             tempShape = new Circle(ShapeStart, e.Location);
         }
     }
     else
     {
         if (!IsShapeStart)
         {
             tempShape = new Line(ShapeStart, e.Location);
         }
     }
     this.Refresh();
 }
Пример #3
0
 private void AddShape(Shape shape)
 {
     Shapes.Add(shape);
     ShapesList.Items.Add(shape.DescriptionString);
 }