Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
ICompetitionService.cs
1using System.Collections.ObjectModel;
2using System.ComponentModel;
4
6{
10 public interface ICompetitionService : INotifyPropertyChanged, ISaveable
11 {
18
23 ObservableCollection<Competition> GetCompetitions();
24
28 void ClearAll();
29
35
40 void AddCompetition(Competition competition);
41
46 void RemoveCompetition(Competition competition);
47
52 int CompetitionCount { get; }
53
62 Competition GetCompetitionForPerson(Person person, SwimmingStyles swimmingStyle, out bool isUsingMaxAgeCompetition, out bool isUsingExactAgeCompetition);
63
69
74
80 void UpdateCompetitionDistanceFromDistanceRules(Competition competition, bool keepRudolphTableFlags = false);
81
86 void UpdateAllCompetitionDistancesFromDistanceRules(bool keepRudolphTableFlags = false);
87
96 void CreateCompetitionsFromRudolphTable(string rudolphTableCsvFile, byte rudolphScore);
97
103 void UpdateAllCompetitionTimesFromRudolphTable(string rudolphTableCsvFile, byte rudolphScore);
104 }
105}
Class describing a competition.
Class describing a person.
Definition Person.cs:12
Interface for a service used to get and store a list of objects.
void UpdateAllCompetitionDistancesFromDistanceRules(bool keepRudolphTableFlags=false)
Update the Competition.Distance from the matching CompetitionDistanceRule for all Competition objects...
Competition GetCompetitionForPerson(Person person, SwimmingStyles swimmingStyle, out bool isUsingMaxAgeCompetition, out bool isUsingExactAgeCompetition)
Return the competition that matches the person and swimming style.
void SetWorkspaceServiceObj(IWorkspaceService workspaceService)
Save the reference to the IWorkspaceService object.
void CreateCompetitionsFromRudolphTable(string rudolphTableCsvFile, byte rudolphScore)
Create the Competition objects from the given rudolph table.
void UpdateCompetitionDistanceFromDistanceRules(Competition competition, bool keepRudolphTableFlags=false)
Update the Competition.Distance from the matching CompetitionDistanceRule
void UpdateAllCompetitionTimesFromRudolphTable(string rudolphTableCsvFile, byte rudolphScore)
Update all Competition.BestTime properties from the given rudolph table.
ObservableCollection< Competition > GetCompetitions()
Return all available Competitions.
void UpdateAllCompetitionsForPerson()
Update all PersonStart and the Person.AvailableCompetitions objects with the corresponding Competitio...
void RemoveCompetition(Competition competition)
Remove the given Competition from the list of Competitions.
void ResetToLoadedState()
Reset the list of Competitions to the state when the Load(string, CancellationToken) method was calle...
void UpdateAllCompetitionsForPerson(Person person)
Update all PersonStart objects and the Person.AvailableCompetitions for the given Person with the cor...
void AddCompetition(Competition competition)
Add a new Competition to the list of Competitions.
Interface for a service used to manage a workspace.
SwimmingStyles
Available swimming styles.