private void AdvanceToNextItem(PhraseFight nextFight) { if (CurrentGroup.Complete) { _sorter.UndergoMitosis(CurrentGroup); } UpdateCurrentFight(); Save(); }
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)); }
public void GrantRightWin() { PhraseFight nextFight = CurrentGroup.AdvancePhraseFight(false); AdvanceToNextItem(nextFight); }
public void GrantLeftWin() { PhraseFight nextFight = CurrentGroup.AdvancePhraseFight(true); AdvanceToNextItem(nextFight); }