private void PaintHighlightedCell(Graphics g)
{
Point mouse = m_mouseLocation;
switch (ToolShape)
{
case ToolShape.Circle:
g.ResetTransform();
mouse.Offset(ToolSize / -2, ToolSize / -2);
g.DrawEllipse(new Pen(Color.Black, 3), new Rectangle(mouse, new Size(ToolSize, ToolSize)));
break;
case ToolShape.Point:
g.DrawRectangle(new Pen(Color.Black, 3), m_highlightedCellLocation.X * m_cellWidth,
m_highlightedCellLocation.Y * m_cellHeight, m_cellWidth, m_cellHeight);
break;
case ToolShape.Square:
g.ResetTransform();
mouse.Offset(ToolSize / -2, ToolSize / -2);
g.DrawRectangle(new Pen(Color.Black, 3), new Rectangle(mouse, new Size(ToolSize, ToolSize)));
break;
}
}