1using System.Collections.ObjectModel;
2using System.ComponentModel;
Class describing a competition distance rule.
Interface for a service used to get and store a list of CompetitionDistanceRule objects.
void SetCompetitionServiceObj(ICompetitionService competitionService)
Save the reference to the ICompetitionService object.
void ClearAll()
Clear all CompetitionDistanceRule
List< CompetitionDistanceRuleValidationIssue > ValidateRules()
Check if all rules are valid and return a list of found issues.
ObservableCollection< CompetitionDistanceRule > GetCompetitionDistanceRules()
Return all available objects.
void AddDistanceRule(CompetitionDistanceRule distanceRule)
Add a new CompetitionDistanceRule to the CompetitionDistanceRules list.
void RemoveDistanceRule(CompetitionDistanceRule distanceRule)
Remove the given CompetitionDistanceRule from the Competition list.
ushort GetCompetitionDistanceFromRules(byte age, SwimmingStyles swimmingStyle)
Try to find a matching rule for the requested age and swimming style.
void ResetToLoadedState()
Reset the list of to the state when the method was called.
Interface for a service used to get and store a list of objects.
Interface for saveable objects.
SwimmingStyles
Available swimming styles.