private void MainScreen_MouseLeave(object sender, EventArgs e) { tempShape = null; this.Refresh(); }
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(); }
private void AddShape(Shape shape) { Shapes.Add(shape); ShapesList.Items.Add(shape.DescriptionString); }