public Board()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // TODO: Add any initialization after the InitComponent call
            BoardWidth        = 0;
            BoardHeight       = 0;
            HorizontalSquares = 0;
            VerticalSquares   = 0;
            SquareWidth       = 0;
            SquareHeight      = 0;
            ShowLegend        = true;
            LegendColor       = Color.LightBlue;
            LegendWidth       = 10;

            mode = SQUAREMODES.DISPLAYONLY;

            hashSquares = new Hashtable();

            TestPaint = false;

            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.DoubleBuffer, true);
        }
        public void SetDisplayMode(string strDisplayMode)
        {
            switch (strDisplayMode)
            {
            case "CONNECTFOUR": mode = SQUAREMODES.CONNECTFOUR; break;

            default: mode = SQUAREMODES.DISPLAYONLY; break;
            }
        }