예제 #1
0
        private void AdvanceToNextItem(PhraseFight nextFight)
        {
            if (CurrentGroup.Complete)
            {
                _sorter.UndergoMitosis(CurrentGroup);
            }

            UpdateCurrentFight();
            Save();
        }
예제 #2
0
 private void UpdateCurrentFight()
 {
     _currentGroup = _sorter.Groups.FirstOrDefault(item => !item.Complete);
     NotifyPropertyChanged(nameof(CurrentGroup));
     NotifyPropertyChanged(nameof(Items));
     if (_currentGroup != null)
     {
         _currentFight = _currentGroup.GetNextPhraseFight();
     }
     else
     {
         _currentFight = null;
     }
     NotifyPropertyChanged(nameof(CurrentFight));
 }
예제 #3
0
        public void GrantRightWin()
        {
            PhraseFight nextFight = CurrentGroup.AdvancePhraseFight(false);

            AdvanceToNextItem(nextFight);
        }
예제 #4
0
        public void GrantLeftWin()
        {
            PhraseFight nextFight = CurrentGroup.AdvancePhraseFight(true);

            AdvanceToNextItem(nextFight);
        }