public void Load_Question(VisibleQuestion Ques) { Answer_A = Ques.Answer_A; Answer_B = Ques.Answer_B; Answer_C = Ques.Answer_C; Answer_D = Ques.Answer_D; Question_String = Ques.Question; Question_Image = ((Image_Question)Ques).Question_Image; }
public void Load_Question(VisibleQuestion Ques) { Answer_A = Ques.Answer_A; Answer_B = Ques.Answer_B; Answer_C = Ques.Answer_C; Answer_D = Ques.Answer_D; Question_String = Ques.Question; Question_Sound = ((Sound_Question)Ques).Question_Sound; FrameworkDispatcher.Update(); Song temp = Song.FromUri("Question", new Uri(Question_Sound, UriKind.Relative)); MediaPlayer.Play(temp); }
public static bool Check_Question(VisibleQuestion VQ, int level) { if (VQ.Hard > level || VQ.Hard < level - 1) { return(false); } for (int i = 0; i < Current_Questions.Count; i++) { if (Current_Questions[i].Id == VQ.Id) { return(false); } } return(true); }