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); }
private void buildFormBorder() { int height = 0; int width = 0; int linesAmount = r_FormStart.GuessAmountCount + 1; // including the game's board and the game's goal int lineHeight = m_GameGoal.GetLengthY(); // includind the line's height and the space offset height = (int)eFormStartLocation.Top + lineHeight * linesAmount + k_SpaceOffset; width = (int)eDefaultFormSize.Width; this.ClientSize = new Size(width, height); }
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); }
public int GetLengthY() { return(r_Guesses.GetLengthY()); }