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(); } }
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(); }
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(); }
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; }