public Form1() { stripChoice = ToolStripChoice.DrawFigure; stylePainting = StylePainting.Brezenham; collection = new CollectionFigure(); isMoving = false; InitializeComponent(); }
public static bool IsStartPoint(this MouseEventArgs mouseEventArgs, CollectionFigure collection) { Vertice p = new Vertice(mouseEventArgs.X, mouseEventArgs.Y); foreach (var fig in collection.figures) { if (fig.IsStartPoint(p)) { return(true); } } return(false); }