private void LoadAllResultDetailToView(List <ResultDetail> details) { //throw new NotImplementedException(); if (_view is V_PointDetailTest) { V_PointDetailTest myView = (V_PointDetailTest)_view; myView.ClearAllResultDetail(); foreach (ResultDetail rd in details) { ucQAdetail myQAdetail = new ucQAdetail(); myQAdetail.ID = rd.ID; myQAdetail.TenDoi = rd.Team.Name; myQAdetail.Vong = rd.RoundNum + ""; myQAdetail.STT = rd.QuestionNum + ""; myQAdetail.Diem = rd.Score; myQAdetail.IsCorrect = rd.IsCorrect; myQAdetail.NoiDungCauHoi = rd.Question.QuestionContentToString(); // myView.AddResultDetail(myQAdetail); } } return; }
public App(V_PointDetailTest view) { _view = view; _controller = new IT_Detail_Controller(view); _view.Controller = _controller; }
public IT_Detail_Controller(V_PointDetailTest view) : base(view) { this._view = view; }