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 void AddResultDetail(ucQAdetail detail) { flpItems.Controls.Add(detail); }