private void runGame() { const int k_IndexOfFirstRow = 0; const int k_RowLeft = 12; const int k_GuessRowTop = 80; const int k_SolutionRowTop = 10; m_Game = new Game(m_SelectedNumberOfChances); SolutionRow solution = new SolutionRow(new Point(k_RowLeft, k_SolutionRowTop), 0); m_SolutionRow = solution; m_SolutionRow.SetEnableOfColorButtons(false); this.Controls.AddRange(solution.GetControls()); for (int i = 0; i < m_SelectedNumberOfChances; i++) { GuessRow guess = new GuessRow(new Point(k_RowLeft, k_GuessRowTop), i); makeGuessRowForTheGame(guess, i, k_IndexOfFirstRow); m_GameRows.Add(guess); this.Controls.AddRange(guess.GetControls()); } }
public SolutionSelectedMessage(SolutionRow solution) { this.Solution = solution ?? throw new System.ArgumentNullException(nameof(solution)); }
public void RemoveSolutionRow(SolutionRow row) { this.Rows.Remove(row); }
public SolutionRowChangeEvent(SolutionRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void AddSolutionRow(SolutionRow row) { this.Rows.Add(row); }