public static void Main() { Application.EnableVisualStyles(); FormGame formGame = new FormGame(); formGame.ShowDialog(); }
private void StartButton_Click(object sender, EventArgs e) { m_GameManager = new GameManager(r_SettingsForm.FirstPlayerName, r_SettingsForm.SecondPlayerName, r_SettingsForm.SecondPlayerIsReal, r_SettingsForm.BoardRows, r_SettingsForm.BoardColumns, r_SettingsForm.Difficulty); m_GameForm = new FormGame(r_SettingsForm.BoardRows, r_SettingsForm.BoardColumns); r_SettingsForm.Hide(); updateCurrentPlayerLabel(); updatePlayersInfoLabels(); initializeImagesCollection(); initializeFormButtons(); m_GameForm.ShowDialog(); }