void Load_Complete_Animation() { Load.Visibility = System.Windows.Visibility.Collapsed; Player_Back.Play(); Timer_TotalTimes.Start(); LoadQuestion(); }
void LoadQuestion() { Global.Current_Index++; if (Global.Current_Index >= Global.Current_Questions.Count) { End_Game(); return; } int Type = Global.Current_Questions[Global.Current_Index].Type; Hide_Control_Question(); switch (Type) { case 0: if (Play_Sound == true) { Play_Sound = false; Player_Back.Play(); } Control_QuesImage.Visibility = System.Windows.Visibility.Visible; Control_QuesImage.Load_Question(Global.Current_Questions[Global.Current_Index]); break; case 1: Player_Back.Pause(); Control_QuesSound.Visibility = System.Windows.Visibility.Visible; Control_QuesSound.Load_Question(Global.Current_Questions[Global.Current_Index]); break; case 2: break; default: break; } }