コード例 #1
0
ファイル: Question.cs プロジェクト: Sheofeen/CJWProject
 public Question(Question item)
 {
     this.choices = new List<Choice>(item.choices);
     this.question = item.question;
     this.questionNum = item.questionNum;
     //loadData();
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 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();
 }