public void MouseDown(PictureBox sheet, IBrush brush, IFill fill, MouseEventArgs e) { foreach (Drawfigure f in canvas.figures) { if (f.figure.IsInside(e.Location)) { activeFigure = f; index = canvas.figures.IndexOf(activeFigure); cursorActive = true; canvas.RenderExceptFigure(activeFigure); canvas.SaveToCache(); } } canvas.figures.Remove(activeFigure); canvas.figuresTmp.RemoveAt(index); canvas.Render(); }
public void MouseUp(PictureBox sheet, IBrush brushFig, IFill fillFig, MouseEventArgs e) { activeFigure.brush = (IBrush)brushFig.Clone(); activeFigure.fill = (IFill)fillFig.Clone(); cursorActive = false; canvas.Render(); canvas.WriteToPictureBox(sheet); }
public void MouseUp(PictureBox sheet, IBrush brush, IFill fill, MouseEventArgs e) { if (activeFigure != null) { cursorActive = false; canvas.Render(); canvas.PointChangeModeOfRectangle(sheet, activeFigure); canvas.WriteToPictureBox(sheet); } }
public void MouseUp(PictureBox sheet, IBrush brush, IFill fill, MouseEventArgs e) { cursorActive = false; canvas.Render(); canvas.WriteToPictureBox(sheet); }