private List <string> ListVoidWord = new List <string>(); //danh sách âm thanh của từ


        public UC_MultipleChoice(int unit)
        {
            uC_MultipleChoice = this;
            InitializeComponent();
            Unit = unit;
            StartApp();//Không thao tác đến khi khởi động xong
            //Clear các âm thanh và câu hỏi trong danh sách
            ListVoidWord.Clear();
            ListVoidSort.Clear();

            try
            {
                CreateQuestionAndAnswer();                                       //Khởi tạo danh sách câu hỏi và câu trả lời ngẫu nhiên
                mediaPlayerVoidStart.Open(new Uri(VoidStart, UriKind.Relative)); //Âm thanh title
                mediaPlayerVoidStart.Stop();
                mediaPlayerVoidStart.Play();
                //Gọi UC Description
                Global.Instance.WindowMain.grdUC_Description.Children.Clear();
                Global.Instance.WindowMain.grdUC_Description.Children.Add(new UC_Description());
                UC_Description.uC_Description.CallTextDescription(TextDescription);
                //Âm thanh Description
                mediaPlayerVoiceDescription.Open(new Uri(VoiceDescription, UriKind.Relative));
                mediaPlayerVoiceDescription.Stop();

                //Âm thanh câu hỏi khi bắt đầu khởi động game
                mediaPlayerVoid.Open(new Uri(ListVoidWord[CountQuestion], UriKind.Relative));
                mediaPlayerVoid.Stop();

                if (CountQuestion < 3)
                {
                    Task.Run(() =>
                    {
                        Thread.Sleep(2000);
                        this.Dispatcher.Invoke(() =>
                        {
                            mediaPlayerVoiceDescription.Play();
                            Thread.Sleep(3000);           //Chờ dể đọc xong Description
                            mediaPlayerVoid.Play();       //Phát âm câu hỏi
                            NotEnableQuestionAndAnswer(); //Ẩn các hình ảnh khi phát âm
                        });
                    }).ContinueWith((task) =>
                    {
                        Thread.Sleep(1000);
                        //Tự đọc câu hỏi khi khởi động
                        FinishStartApp();// khởi động xong //Hiện các câu trả lời và câu hỏi
                    });
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Lỗi khi khởi tạo UserControl!");
            }
        }
        public void UnitUCActivity(Unit unit, string Activity)//Gọi các UC activity theo từng Unit khi MouseDown lable
        {
            //Xóa UC cũ
            Global.Instance.WindowMain.grdUC_Activity.Children.Clear();
            switch (Activity)
            {
            case "lblActivity1":
            {
                switch (Activity)
                {
                case "lblActivity1":
                {
                    //Add uc vào main
                    UC_Concentration UC_Activity = new UC_Concentration(1);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);                 //Gọi UC với đối số truyền vào là 1
                    break;
                }

                case "lblActivity2":
                {
                    UC_Matching UC_Activity = new UC_Matching(1);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity3":
                {
                    //Add uc vào main
                    UC_Sorting UC_Activity = new UC_Sorting(1);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity4":
                {
                    //Add uc vào main
                    UC_MultipleChoice UC_Activity = new UC_MultipleChoice(1);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity5":
                {
                    //Add uc vào main
                    UC_Painting UC_Activity = new UC_Painting(1);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity6":
                {
                    //Add uc vào main
                    UC_StoryTime UC_Activity = new UC_StoryTime(1);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity7":
                {
                    //Add uc vào main
                    UC_LookAndFind UC_Activity = new UC_LookAndFind(1);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                default:
                    break;
                }
                break;
            }

            case "lblActivity2":
            {
                switch (Activity)
                {
                case "lblActivity1":
                {
                    //Add uc vào main
                    UC_Concentration UC_Activity = new UC_Concentration(2);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);                 //Gọi UC với đối số truyền vào là 1
                    break;
                }

                case "lblActivity2":
                {
                    //Add uc vào main

                    UC_Matching UC_Activity = new UC_Matching(2);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity3":
                {
                    //Add uc vào main
                    UC_Sorting UC_Activity = new UC_Sorting(2);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity4":
                {
                    //Add uc vào main
                    UC_MultipleChoice UC_Activity = new UC_MultipleChoice(2);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity5":
                {
                    //Add uc vào main
                    UC_Painting UC_Activity = new UC_Painting(2);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity6":
                {
                    //Add uc vào main
                    UC_StoryTime UC_Activity = new UC_StoryTime(2);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity7":
                {
                    //Add uc vào main
                    UC_LookAndFind UC_Activity = new UC_LookAndFind(2);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                default:
                    break;
                }

                break;
            }

            case "lblActivity3":
            {
                switch (Activity)
                {
                case "lblActivity1":
                {
                    //Add uc vào main
                    UC_Concentration UC_Activity = new UC_Concentration(3);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);                 //Gọi UC với đối số truyền vào là 1
                    break;
                }

                case "lblActivity2":
                {
                    //Add uc vào main

                    UC_Matching UC_Activity = new UC_Matching(3);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity3":
                {
                    //Add uc vào main
                    UC_Sorting UC_Activity = new UC_Sorting(3);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity4":
                {
                    //Add uc vào main
                    UC_MultipleChoice UC_Activity = new UC_MultipleChoice(3);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity5":
                {
                    //Add uc vào main
                    UC_Painting UC_Activity = new UC_Painting(3);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity6":
                {
                    //Add uc vào main
                    UC_StoryTime UC_Activity = new UC_StoryTime(3);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity7":
                {
                    //Add uc vào main
                    UC_LookAndFind UC_Activity = new UC_LookAndFind(3);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                default:
                    break;
                }

                break;
            }

            case "lblActivity4":
            {
                switch (Activity)
                {
                case "lblActivity1":
                {
                    //Add uc vào main
                    UC_Concentration UC_Activity = new UC_Concentration(4);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);                 //Gọi UC với đối số truyền vào là 1
                    break;
                }

                case "lblActivity2":
                {
                    //Add uc vào main

                    UC_Matching UC_Activity = new UC_Matching(4);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity3":
                {
                    //Add uc vào main
                    UC_Sorting UC_Activity = new UC_Sorting(4);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity4":
                {
                    //Add uc vào main
                    UC_MultipleChoice UC_Activity = new UC_MultipleChoice(4);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity5":
                {
                    //Add uc vào main
                    UC_Painting UC_Activity = new UC_Painting(4);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity6":
                {
                    //Add uc vào main
                    UC_StoryTime UC_Activity = new UC_StoryTime(4);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity7":
                {
                    //Add uc vào main
                    UC_LookAndFind UC_Activity = new UC_LookAndFind(4);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                default:
                    break;
                }

                break;
            }

            case "lblActivity5":
            {
                switch (Activity)
                {
                case "lblActivity1":
                {
                    //Add uc vào main
                    UC_Concentration UC_Activity = new UC_Concentration(5);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);                 //Gọi UC với đối số truyền vào là 1
                    break;
                }

                case "lblActivity2":
                {
                    //Add uc vào main

                    UC_Matching UC_Activity = new UC_Matching(5);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity3":
                {
                    //Add uc vào main
                    UC_Sorting UC_Activity = new UC_Sorting(5);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity4":
                {
                    //Add uc vào main
                    UC_MultipleChoice UC_Activity = new UC_MultipleChoice(5);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity5":
                {
                    //Add uc vào main
                    UC_Painting UC_Activity = new UC_Painting(5);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity6":
                {
                    //Add uc vào main
                    UC_StoryTime UC_Activity = new UC_StoryTime(5);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity7":
                {
                    //Add uc vào main
                    UC_LookAndFind UC_Activity = new UC_LookAndFind(5);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                default:
                    break;
                }

                break;
            }

            case "lblActivity6":
            {
                switch (Activity)
                {
                case "lblActivity1":
                {
                    //Add uc vào main
                    UC_Concentration UC_Activity = new UC_Concentration(6);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);                 //Gọi UC với đối số truyền vào là 1
                    break;
                }

                case "lblActivity2":
                {
                    //Add uc vào main

                    UC_Matching UC_Activity = new UC_Matching(6);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity3":
                {
                    //Add uc vào main
                    UC_Sorting UC_Activity = new UC_Sorting(6);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity4":
                {
                    //Add uc vào main
                    UC_MultipleChoice UC_Activity = new UC_MultipleChoice(6);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity5":
                {
                    //Add uc vào main
                    UC_Painting UC_Activity = new UC_Painting(6);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity6":
                {
                    //Add uc vào main
                    UC_StoryTime UC_Activity = new UC_StoryTime(6);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity7":
                {
                    //Add uc vào main
                    UC_LookAndFind UC_Activity = new UC_LookAndFind(6);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                default:
                    break;
                }

                break;
            }

            case "lblActivity7":
            {
                switch (Activity)
                {
                case "lblActivity1":
                {
                    //Add uc vào main
                    UC_Concentration UC_Activity = new UC_Concentration(7);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);                 //Gọi UC với đối số truyền vào là 1
                    break;
                }

                case "lblActivity2":
                {
                    //Add uc vào main

                    UC_Matching UC_Activity = new UC_Matching(7);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity3":
                {
                    //Add uc vào main
                    UC_Sorting UC_Activity = new UC_Sorting(7);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity4":
                {
                    //Add uc vào main
                    UC_MultipleChoice UC_Activity = new UC_MultipleChoice(7);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity5":
                {
                    //Add uc vào main
                    UC_Painting UC_Activity = new UC_Painting(7);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity6":
                {
                    //Add uc vào main
                    UC_StoryTime UC_Activity = new UC_StoryTime(7);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity7":
                {
                    //Add uc vào main
                    UC_LookAndFind UC_Activity = new UC_LookAndFind(7);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                default:
                    break;
                }

                break;
            }

            case "lblActivity8":
            {
                switch (Activity)
                {
                case "lblActivity1":
                {
                    //Add uc vào main
                    UC_Concentration UC_Activity = new UC_Concentration(8);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);                 //Gọi UC với đối số truyền vào là 1
                    break;
                }

                case "lblActivity2":
                {
                    //Add uc vào main

                    UC_Matching UC_Activity = new UC_Matching(8);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity3":
                {
                    //Add uc vào main
                    UC_Sorting UC_Activity = new UC_Sorting(8);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity4":
                {
                    //Add uc vào main
                    UC_MultipleChoice UC_Activity = new UC_MultipleChoice(8);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity5":
                {
                    //Add uc vào main
                    UC_Painting UC_Activity = new UC_Painting(8);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity6":
                {
                    //Add uc vào main
                    UC_StoryTime UC_Activity = new UC_StoryTime(8);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                case "lblActivity7":
                {
                    //Add uc vào main
                    UC_LookAndFind UC_Activity = new UC_LookAndFind(8);
                    Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                    break;
                }

                default:
                    break;
                }

                break;
            }

            case "lblActivity9":
            {
                //Add uc vào main
                UC_LookAndFind UC_Activity = new UC_LookAndFind((int)unit);
                Global.Instance.WindowMain.grdUC_Activity.Children.Add(UC_Activity);
                break;
            }

            default:
                break;
            }
        }