private void addShape(Shape item) { shapes.Add(item); ShapesList.Items.Add(item.Info()); }
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(); } } }