private void brushSquare_Click(object sender, EventArgs e) // Вызов квадратной кисти { brush = new SquareBrush(brush); brushSquare.BorderStyle = BorderStyle.Fixed3D; brushCircle.BorderStyle = BorderStyle.None; }
public void MouseClick(PictureBox sheet, IBrush brush, IFill fill, MouseEventArgs e) { }
public void MouseUp(PictureBox sheet, IBrush brush, IFill fill, MouseEventArgs e) { cursorActive = false; brush.BrushColor = color; }
public SquareBrush(IBrush brush) { BrushSize = brush.BrushSize; BrushColor = brush.BrushColor; }