/// <summary> /// Indicate failure for the current split. /// /// There must be at least one split defined before this method can be called. If /// this is not the case, ArgumentOutOfRangeException will be thrown. /// </summary> public void FailureProc() { // A run must be in progress. if (RunInProgress == false) { throw new InvalidOperationException(); } // Inform the Model. Challenges.Failure(currentChallenge); // Increment the current value of the current split. splitList[CurrentSplit].CurrentValue++; // Increment the current value of the TOTAL row. splitList.Last().CurrentValue++; NotifyPropertyChanged("SplitList"); }