Example #1
0
 private void createGameGoal(ref Point io_Location)
 {
     m_GameGoal = new GuessesButtonsList(io_Location);
     m_GameGoal.DarkButtons();
     io_Location.Y += m_GameGoal.GetLengthY() + k_SpaceOffset;
     addButtonsToForm(m_GameGoal);
 }
Example #2
0
        public GameLine(Point i_Location)
        {
            r_Guesses = new GuessesButtonsList(i_Location);
            foreach (Button btn in r_Guesses.List)
            {
                btn.Click += new EventHandler(buttonColor_Click);
            }

            r_AcceptButton         = new Button();
            r_AcceptButton.Text    = k_AcceptText;
            r_AcceptButton.Size    = new Size((int)eAcceptButtonSize.Width, (int)eAcceptButtonSize.Height);
            r_AcceptButton.Enabled = false;

            i_Location.X           += r_Guesses.GetLengthX();
            i_Location.Y           += r_Guesses.GetLengthY() / 2;
            r_AcceptButton.Location = i_Location;

            i_Location.X += (int)eAcceptButtonSize.Width + k_SpaceOffset;
            i_Location.Y -= (int)eAcceptButtonSize.Height / 2;

            r_Results = new ResultsButtonsList(i_Location);
        }