private void playButton_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(Quiz.lastFolder)) { MessageBox.Show("Please, choose at least one song.", "No melodies found", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } gameForm gameForm = new gameForm(this); gameForm.Show(); this.Hide(); if (isFirstLaunch) { tutorialForm tutorialForm = new tutorialForm(gameForm); tutorialForm.Size = new Size(gameForm.Width, gameForm.Height + 60); tutorialForm.Location = gameForm.Location; tutorialForm.ShowDialog(); isFirstLaunch = false; } }
public tutorialForm(gameForm gameForm) { InitializeComponent(); this.gameForm = gameForm; Animator.Start(); }
public gameOverForm(gameForm gameForm, Winning winning) { this.gameForm = gameForm; this.winning = winning; InitializeComponent(); }