コード例 #1
0
        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;
            }
        }
コード例 #2
0
 public tutorialForm(gameForm gameForm)
 {
     InitializeComponent();
     this.gameForm = gameForm;
     Animator.Start();
 }
コード例 #3
0
 public gameOverForm(gameForm gameForm, Winning winning)
 {
     this.gameForm = gameForm;
     this.winning  = winning;
     InitializeComponent();
 }