public static void Main()
        {
            StartForm startForm = new StartForm();
            BoardForm boadForm;

            startForm.ShowDialog();
            if (startForm.DialogResult == DialogResult.OK)
            {
                do
                {
                    boadForm = new BoardForm(startForm);
                    boadForm.ShowDialog();
                }while(boadForm.DialogResult == DialogResult.Yes);
            }
        }
        public static void Main()
        {
            StartForm startForm = new StartForm();
            BoardForm boadForm;

            startForm.ShowDialog();
            if (startForm.DialogResult == DialogResult.OK)
            {
                do
                {
                    boadForm = new BoardForm(startForm);
                    boadForm.ShowDialog();
                }
                while(boadForm.DialogResult == DialogResult.Yes);
            }
        }
        public BoardForm(StartForm i_GameProperties)
        {
            m_GameProperties     = i_GameProperties;
            this.Text            = "Damka";
            this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            this.StartPosition   = FormStartPosition.CenterScreen;
            if (m_GameProperties.BoardSize == 6)
            {
                this.Size = new Size(528, 580);
            }
            else if (m_GameProperties.BoardSize == 8)
            {
                this.Size = new Size(686, 746);
            }
            else
            {
                this.Size = new Size(848, 900);
            }

            InitControls();
        }
        public BoardForm(StartForm i_GameProperties)
        {
            m_GameProperties = i_GameProperties;
            this.Text = "Damka";
            this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            this.StartPosition = FormStartPosition.CenterScreen;
            if (m_GameProperties.BoardSize == 6)
            {
                this.Size = new Size(528, 580);
            }
            else if (m_GameProperties.BoardSize == 8)
            {
                this.Size = new Size(686, 746);
            }
            else
            {
                this.Size = new Size(848, 900);
            }

            InitControls();
        }