public Question(Question item) { this.choices = new List<Choice>(item.choices); this.question = item.question; this.questionNum = item.questionNum; //loadData(); }
private void onNextButtonClick(object sender, RoutedEventArgs e) { if (curIndex + 1 < 20) _curQuestion = this._questions[++curIndex]; if(curIndex==19) NextBtn.Visibility = Visibility.Collapsed; LastBtn.Visibility = Visibility.Visible; notifyChangeAll(); }
private void onLastButtionClick(object sender, RoutedEventArgs e) { if (curIndex - 1 >= 0) _curQuestion = this._questions[--curIndex]; if(curIndex==0) LastBtn.Visibility = Visibility.Collapsed; NextBtn.Visibility = Visibility.Visible; notifyChangeAll(); }