예제 #1
0
        public Board(int i_Rows, BoardForm i_BoardForm)
        {
            m_Rows = new Row[i_Rows];
            for (int i = 0; i < m_Rows.Length; i++)
            {
                m_Rows[i] = new Row(m_PatternLength);
            }

            m_boardFormOfThisBoard = i_BoardForm;
            randomWordToComputer(m_PatternLength);
        }
예제 #2
0
        public void Start()
        {
            Row.NumberOfExistingRows = 0;
            StartForm start = new StartForm();

            start.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            start.ShowDialog();
            m_NumberOfChances = start.NumberOfChances;

            if (start.DialogResult == DialogResult.OK)
            {
                m_Board                 = new BoardForm(m_NumberOfChances);
                m_Board.Width           = m_Board.GetWidth + 10;
                m_Board.Height          = m_Board.GetHeight * (m_NumberOfChances + 2) + 35;
                m_Board.BackColor       = System.Drawing.Color.FromArgb(76, 98, 95);
                m_Board.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
                m_Board.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                m_Board.ShowDialog();
            }
        }