private void Form1_MouseMove(object sender, MouseEventArgs e) { if (rb_cross.Checked) TempShape = new Cross(e.X, e.Y); else if (rb_line.Checked) { if (!IsShapeStart) { TempShape = new Line(ShapeStart, e.Location); } } else if (rb_circle.Checked) { if (!IsShapeStart) { TempShape = new Circle(ShapeStart, e.Location); } } this.Refresh(); }
private void AddShape(Shape s) { Shapes.Add(s); Shapes_List.Items.Add(s.ConfString); }
private void rb_CheckedChanged(object sender, EventArgs e) { TempShape = null; IsShapeStart = true; }