public void PreExam() { if (examList != null) { nowItem = nowItem - 1; } examList = ListBankView.Where(x => x.index == nowItem).FirstOrDefault(); }
public void GetExam() { foreach (var item in ListBankView) { if (item.index == nowItem) { item.selectItem = examList.selectItem; //item.ansower = examList.ansower; item.LselectItem = examList.LselectItem; } } if (PreNext == "Pre") { nowItem = nowItem - 1; } if (PreNext == "Next") { nowItem = nowItem + 1; } examList = ListBankView.Where(x => x.index == nowItem).FirstOrDefault(); VExamUserInfo.LExamViews = ListBankView; }