private void Player_Sound_MediaEnded(object sender, RoutedEventArgs e) { if (Bool_Animation == true) { Player_Sound.Play(); } }
private void Storyboard_Visible_Completed(object sender, EventArgs e) { Timer_Score.Start(); Border_Image.Opacity = 1; Storyboard_Rotation.Begin(); Player_Sound.Play(); Timer_PlaySound.Stop(); }
void Timer_Score_Tick(object sender, EventArgs e) { if (Convert.ToInt32(Text_Score.Text) != Global.F_Score.Total_Score) { Text_Score.Text = (Convert.ToInt32(Text_Score.Text) + 1).ToString(); } if (Convert.ToInt32(Text_Times.Text) != Global.F_Score.Total_Time) { Text_Times.Text = (Convert.ToInt32(Text_Times.Text) + 1).ToString(); } if (Convert.ToInt32(Text_Score.Text) == Global.F_Score.Total_Score && Convert.ToInt32(Text_Times.Text) == Global.F_Score.Total_Time) { Player_Sound.Stop(); Timer_Score.Stop(); Bool_Animation = false; } }