private void UpdateCellLocations(Graphics g)
{
Matrix mouseMatrix = g.Transform.Clone();
Point[] points = new Point[] { m_mouseLocation };
mouseMatrix.Invert();
mouseMatrix.TransformPoints(points);
Point transformedMouseLocation = points[0];
m_highlightedCellLocation.X = (int)System.Math.Floor(transformedMouseLocation.X / m_cellWidth);
m_highlightedCellLocation.Y = (int)System.Math.Floor(transformedMouseLocation.Y / m_cellHeight);
if (m_isLeftMouseDown)
{
m_selectedCellLocation = m_highlightedCellLocation;
}
}