예제 #1
0
        private Card Learn(bool successful, int durationInSeconds = 1)
        {
            var card = _learn.GetNextCard();

            _dateTime.AddSeconds(durationInSeconds);
            _learn.SetResult(card.Front, successful);

            return(card);
        }
예제 #2
0
 public void Wrong()
 {
     Learn.SetResult(_card.Front, false);
     _card = Learn.GetNextCard();
 }
예제 #3
0
 protected override void OnInit()
 {
     _card = Learn.GetNextCard();
 }
예제 #4
0
 public void Correct()
 {
     Learn.SetResult(_card.Front, true);
     _card = Learn.GetNextCard();
 }