|
Vereinsmeisterschaften
22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
|
View model for the race preparation page. More...
Public Member Functions | |||
| PrepareRacesViewModel (IRaceService raceService, IWorkspaceService workspaceService, IPersonService personService, IDialogCoordinator dialogCoordinator, ShellViewModel shellVM) | |||
| Constructor of the prepare races view model. | |||
| void | OnNavigatedTo (object parameter) | ||
OnNavigatedTo method to handle navigation to this object.
| |||
| void | OnNavigatedFrom () | ||
| OnNavigatedFrom method to handle navigation away from this object. | |||
Private Member Functions | |
| void | recalculateVariantIDs () |
| Recalculate the variant IDs for all elements in AllRacesVariants | |
| void | recalculateHighlightedPersonStarts () |
| Recalculate the PersonStart.IsHighlighted property for all PersonStart objects depending on the HighlightPersonStartMode | |
Private Attributes | |
| RacesVariant | _currentRacesVariant |
| HighlightPersonStartModes | _highlightPersonStartMode |
| Person | _highlightedPerson |
| List< SwimmingStyles > | _availableSwimmingStyles = Enum.GetValues(typeof(SwimmingStyles)).Cast<SwimmingStyles>().Where(s => s != SwimmingStyles.Unknown).ToList() |
| SwimmingStyles | _highlightedSwimmingStyle |
| Genders | _highlightedGender |
| ushort | _highlightedDistance |
| IRaceService | _raceService |
| IWorkspaceService | _workspaceService |
| IPersonService | _personService |
| IDialogCoordinator | _dialogCoordinator |
| ShellViewModel | _shellVM |
| ICommand | _calculateRacesVariantsCommand |
| ICommand | _addNewRaceCommand |
| ICommand | _cleanupRacesCommand |
| ICommand | _addNewRaceVariantCommand |
| ICommand | _removeRaceVariantCommand |
| ICommand | _copyRaceVariantCommand |
| ICommand | _reorderRaceVariantsCommand |
View model for the race preparation page.
Definition at line 18 of file PrepareRacesViewModel.cs.
| Vereinsmeisterschaften.ViewModels.PrepareRacesViewModel.PrepareRacesViewModel | ( | IRaceService | raceService, |
| IWorkspaceService | workspaceService, | ||
| IPersonService | personService, | ||
| IDialogCoordinator | dialogCoordinator, | ||
| ShellViewModel | shellVM ) |
Constructor of the prepare races view model.
| raceService | IRaceService object |
| workspaceService | IWorkspaceService object |
| personService | IPersonService object |
| dialogCoordinator | IDialogCoordinator object |
| shellVM | ShellViewModel object used for dialog display |
Definition at line 267 of file PrepareRacesViewModel.cs.
| void Vereinsmeisterschaften.ViewModels.PrepareRacesViewModel.OnNavigatedFrom | ( | ) |
OnNavigatedFrom method to handle navigation away from this object.
Implements Vereinsmeisterschaften.Contracts.ViewModels.INavigationAware.
Definition at line 492 of file PrepareRacesViewModel.cs.
| void Vereinsmeisterschaften.ViewModels.PrepareRacesViewModel.OnNavigatedTo | ( | object | parameter | ) |
OnNavigatedTo method to handle navigation to this object.
| parameter | Parameter that can be passed by the caller |
Implements Vereinsmeisterschaften.Contracts.ViewModels.INavigationAware.
Definition at line 475 of file PrepareRacesViewModel.cs.
|
private |
Recalculate the PersonStart.IsHighlighted property for all PersonStart objects depending on the HighlightPersonStartMode
Definition at line 232 of file PrepareRacesViewModel.cs.
|
private |
Recalculate the variant IDs for all elements in AllRacesVariants
Definition at line 89 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 370 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 395 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 169 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 304 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 384 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 443 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 67 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 256 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 211 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 193 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 151 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 175 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 128 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 255 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 253 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 412 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 460 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 257 of file PrepareRacesViewModel.cs.
|
private |
Definition at line 254 of file PrepareRacesViewModel.cs.
|
get |
Command to add a new Race to the CurrentRacesVariant
Definition at line 374 of file PrepareRacesViewModel.cs.
|
get |
Add a new RacesVariant element to the RaceService.AllRacesVariants
Definition at line 399 of file PrepareRacesViewModel.cs.
|
get |
List with all RacesVariant
Definition at line 25 of file PrepareRacesViewModel.cs.
|
get |
True, if there are friend groups available in the IPersonService
Definition at line 35 of file PrepareRacesViewModel.cs.
|
get |
True, if there is at least one element in AllRacesVariants
Definition at line 30 of file PrepareRacesViewModel.cs.
|
get |
List with all available Person objects.
Definition at line 149 of file PrepareRacesViewModel.cs.
|
get |
List with all available SwimmingStyles
Definition at line 173 of file PrepareRacesViewModel.cs.
|
get |
Command to calculate new RacesVariant variants.
Definition at line 308 of file PrepareRacesViewModel.cs.
|
get |
Command to cleanup all RacesVariant in RaceService.AllRacesVariants
Definition at line 388 of file PrepareRacesViewModel.cs.
|
get |
Copy the CurrentRacesVariant and add it as new variant to RaceService.AllRacesVariants
Definition at line 447 of file PrepareRacesViewModel.cs.
|
getset |
RacesVariant that is currently displayed on the view
Definition at line 71 of file PrepareRacesViewModel.cs.
|
getset |
Property wrapper for the RacesVariant.IsPersistent property of the CurrentRacesVariant.
This wrapper first disables the RacesVariant.IsPersistent property of all elements in AllRacesVariants and then sets the property of the CurrentRacesVariant
Definition at line 105 of file PrepareRacesViewModel.cs.
|
getset |
RacesVariant.VariantID of the CurrentRacesVariant Use 0 to select the RaceService.PersistedRacesVariant or the first element in AllRacesVariants if CurrentRacesVariant is null.
Use -1 to clear the current selection in the combobox
Definition at line 44 of file PrepareRacesViewModel.cs.
|
getset |
All PersonStart elements that match this distance will be highlighted if the HighlightPersonStartMode is HighlightPersonStartModes.Distance
Definition at line 215 of file PrepareRacesViewModel.cs.
|
getset |
All PersonStart elements that match this Genders will be highlighted if the HighlightPersonStartMode is HighlightPersonStartModes.Gender
Definition at line 197 of file PrepareRacesViewModel.cs.
|
getset |
All PersonStart elements that match this Person will be highlighted if the HighlightPersonStartMode is HighlightPersonStartModes.Person
Definition at line 155 of file PrepareRacesViewModel.cs.
|
getset |
All PersonStart elements that match this SwimmingStyles will be highlighted if the HighlightPersonStartMode is HighlightPersonStartModes.SwimmingStyle
Definition at line 179 of file PrepareRacesViewModel.cs.
|
getset |
Currently active highlight mode.
Definition at line 132 of file PrepareRacesViewModel.cs.
|
get |
Remove the CurrentRacesVariant from the RaceService.AllRacesVariants
Definition at line 416 of file PrepareRacesViewModel.cs.
|
get |
Reorder the RacesVariant variants by score and then recalculate the variant IDs.
Definition at line 464 of file PrepareRacesViewModel.cs.