public void setLocation(SelectMode selectMode, Location location)
    {
        switch (selectMode)
        {
            case FirstBlock:
                m_firstLocation = location;
                break;
            case SecondBlock:
                m_secondLocation = location;
                break;
        }

        if (m_firstLocation != null && m_secondLocation != null)
        {
            int nX = (int)m_firstLocation.getX(), nY = (int)m_firstLocation.getZ();
            int nWidth = (int)m_secondLocation.getX(), nHeight = (int)m_secondLocation.getZ();
            m_rect = new Rectangle(nX, nY, nWidth, nHeight);
        }
        else { }
    }