private void UpdateView(string rightAnswer, int currentPoint)
 {
     if (_view is V_IT_Vong1_Thi)
     {
         V_IT_Vong1_Thi myView = _view as V_IT_Vong1_Thi;
         myView.CurrentPoint    = currentPoint + "";
         myView.RightAnswerRate = rightAnswer;
     }
 }
        private void UpdateView(Question nextQues)
        {
            //throw new NotImplementedException();
            if (_view is V_IT_Vong1_Thi)
            {
                V_IT_Vong1_Thi myView = _view as V_IT_Vong1_Thi;
                if (nextQues == null)// het cau hoi vong nay -- dk khác có vấn đề đây
                {
                    try
                    {
                        (new BLL()).MakeTeamDone(_teamId);
                        Close();
                    }
                    catch
                    {
                    }
                    return;

                    ////
                    ///
                }
                if (nextQues is Compound)
                {
                    Compound ques = nextQues as Compound;
                    myView.QuestionText = ques.QuestionContent + "\nA." + ques.ChoiceA + "\nB." + ques.ChoiceB + "\nC." + ques.ChoiceC + "\nD." + ques.ChoiceD;
                }
                else if (nextQues is Multiple_Choice)
                {
                    Multiple_Choice ques = nextQues as Multiple_Choice;
                    myView.QuestionText = ques.QuestionContent + "\nA." + ques.ChoiceA + "\nB." + ques.ChoiceB + "\nC." + ques.ChoiceC + "\nD." + ques.ChoiceD;
                }
                else if (nextQues is Fill_In)
                {
                    Fill_In ques = nextQues as Fill_In;
                    myView.QuestionText = ques.QuestionContent.Replace("NNN", "...");
                }
                else
                {
                    myView.QuestionText = nextQues.QuestionContent;
                }
                myView.AnswerKey       = nextQues.AnswerKey;
                myView.QuestionNumText = nextQues.STT;
            }
        }
 public App(V_IT_Vong1_Thi view)
 {
     _view            = view;
     _controller      = new IT_Vong1Thi_Controller(view);
     _view.Controller = _controller;
 }