コード例 #1
0
        private void ScoreTimer_Tick(object sender, EventArgs e)
        {
            scoreLabel.Text      = myscore.ToString();
            TaikoCountLabel.Text = taikocount.ToString();

            if (taikocount == 100)
            {
                Taikotimer.Stop();
                HitSecondsTimer.Stop();
                ScoreTimer.Stop();

                /*System.Media.SoundPlayer player = new System.Media.SoundPlayer();
                 * //player.SoundLocation = @"C:\Users\acer\Desktop\Things\Music\wav\My Dearest.wav";
                 * player.Stop();
                 * player.Dispose();*/


                Taiko1.Visible   = false;
                Taiko2.Visible   = false;
                Taiko3.Visible   = false;
                Taiko4.Visible   = false;
                HitTaiko.Visible = false;
                owari.Visible    = true;
                endtime          = 0;
                PlayTimer.Stop();
            }
        }
コード例 #2
0
 private void StopBtn_Click(object sender, EventArgs e)
 {
     System.Media.SoundPlayer player = new System.Media.SoundPlayer();
     //player.SoundLocation = @"C:\Users\acer\Desktop\Things\Music\wav\My Dearest.wav";
     player.Stop();
     player.Dispose();
     Taikotimer.Stop();
 }
コード例 #3
0
        private void BackBtn_Click(object sender, EventArgs e)
        {
            Form1 aForm = new Form1();

            aForm.FormClosed += new FormClosedEventHandler(A_FormClosed);
            aForm.Show();
            this.Hide();

            System.Media.SoundPlayer player = new System.Media.SoundPlayer();
            //player.SoundLocation = @"C:\Users\acer\Desktop\Things\Music\wav\My Dearest.wav";
            player.Stop();
            player.Dispose();
            Taikotimer.Stop();
        }
コード例 #4
0
        private void PlayBtn_Click(object sender, EventArgs e)
        {
            System.Media.SoundPlayer player = new System.Media.SoundPlayer();
            player.Stream = Properties.Resources.Believer3;
            //player.SoundLocation = @"C:\Users\acer\Desktop\Things\Music\wav\My Dearest.wav";

            player.Play();
            Taiko1.Visible = true;
            Taikotimer.Start();
            ScoreTimer.Start();
            PlayTimer.Start();
            taikocount    = 0;
            myscore       = 0;
            owari.Visible = false;
        }