|
Vereinsmeisterschaften
22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
|
ViewModel for creating various types of documents such as certificates, overview. More...
Public Member Functions | |||
| CreateDocumentsViewModel (IDocumentService documentService, IPersonService personService, IWorkspaceService workspaceService, IDialogCoordinator dialogCoordinator, ShellViewModel shellVM, IEnumerable< IDocumentStrategy > documentStrategies) | |||
| Constructor for the CreateDocumentsViewModel class. | |||
| void | OnNavigatedTo (object parameter) | ||
OnNavigatedTo method to handle navigation to this object.
| |||
| void | OnNavigatedFrom () | ||
| OnNavigatedFrom method to handle navigation away from this object. | |||
Properties | |
| Dictionary< DocumentCreationTypes, DocumentCreationConfig > | DocumentCreationConfigPerType = new Dictionary<DocumentCreationTypes, DocumentCreationConfig>() [get] |
| Dictionary to hold the for each type. | |
| Dictionary< DocumentCreationTypes, DocumentCreationStatus > | DocumentCreationStatusPerType = new Dictionary<DocumentCreationTypes, DocumentCreationStatus>() [get] |
| Dictionary to hold the for each type. | |
| bool | IsAnyDocumentCreationRunning [get] |
| Indicates whether at leas one document creation process is currently running. | |
| List< Person > | AvailablePersons [get] |
| List with all available Person objects. | |
| List< SwimmingStyles > | AvailableSwimmingStyles [get] |
| List with all available SwimmingStyles | |
| ObservableCollection< DocumentPlaceholderViewConfig > | PlaceholderViewConfigs [get, private set] |
| Collection of DocumentPlaceholderViewConfig objects that define the available placeholders for documents. | |
| ICollectionView | PlaceholderViewConfigsView [get, private set] |
| Collection view used to display the PlaceholderViewConfigs | |
| ICommand | CreateDocumentCommand [get] |
| Command to create documents. | |
Private Member Functions | |
| void | changeDocumentCreationRunningState (DocumentCreationTypes documentType, bool isRunning) |
| void | changeDocumentCreationSuccessfulState (DocumentCreationTypes documentType, bool isSuccessful) |
| void | changeDocumentDataAvailableState (DocumentCreationTypes documentType, bool isDataAvailable) |
| void | changeDocumentTemplateAvailableState (DocumentCreationTypes documentType, bool isTemplateAvailable) |
| void | changeLastDocumentFilePath (DocumentCreationTypes documentType, string lastDocumentFilePath) |
| void | setDictionaryValue< T > (DocumentCreationTypes documentType, T value, string propertyName) |
| void | initPlaceholderViewConfigs () |
| Initializes the PlaceholderViewConfigs collection with available placeholders. | |
Private Attributes | |
| int | _numberCreatedCertificates = -1 |
| Number of created certificates during the last creation process. | |
| List< SwimmingStyles > | _availableSwimmingStyles = Enum.GetValues(typeof(SwimmingStyles)).Cast<SwimmingStyles>().Where(s => s != SwimmingStyles.Unknown).ToList() |
| int | _numberCreatedTimeForms = -1 |
| Number of created time forms during the last creation process. | |
| ObservableCollection< DocumentPlaceholderViewConfig > | _placeholderViewConfigs = new ObservableCollection<DocumentPlaceholderViewConfig>() |
| IDocumentService | _documentService |
| IPersonService | _personService |
| IWorkspaceService | _workspaceService |
| IDialogCoordinator | _dialogCoordinator |
| ShellViewModel | _shellVM |
| IEnumerable< IDocumentStrategy > | _documentStrategies |
| ICommand | _createDocumentCommand |
ViewModel for creating various types of documents such as certificates, overview.
Definition at line 27 of file CreateDocumentsViewModel.cs.
| Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.CreateDocumentsViewModel | ( | IDocumentService | documentService, |
| IPersonService | personService, | ||
| IWorkspaceService | workspaceService, | ||
| IDialogCoordinator | dialogCoordinator, | ||
| ShellViewModel | shellVM, | ||
| IEnumerable< IDocumentStrategy > | documentStrategies ) |
Constructor for the CreateDocumentsViewModel class.
| documentService | IDocumentService object |
| personService | IPersonService object |
| workspaceService | IWorkspaceService object |
| dialogCoordinator | IDialogCoordinator object |
| shellVM | ShellViewModel object used for dialog display |
| documentStrategies | List with IDocumentStrategy objects |
Definition at line 214 of file CreateDocumentsViewModel.cs.
|
private |
Initializes the PlaceholderViewConfigs collection with available placeholders.
Definition at line 134 of file CreateDocumentsViewModel.cs.
| void Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.OnNavigatedFrom | ( | ) |
OnNavigatedFrom method to handle navigation away from this object.
Implements Vereinsmeisterschaften.Contracts.ViewModels.INavigationAware.
Definition at line 371 of file CreateDocumentsViewModel.cs.
| void Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.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 327 of file CreateDocumentsViewModel.cs.
|
private |
Definition at line 61 of file CreateDocumentsViewModel.cs.
|
private |
Definition at line 92 of file CreateDocumentsViewModel.cs.
|
private |
Definition at line 248 of file CreateDocumentsViewModel.cs.
|
private |
Definition at line 201 of file CreateDocumentsViewModel.cs.
|
private |
Definition at line 198 of file CreateDocumentsViewModel.cs.
|
private |
Definition at line 203 of file CreateDocumentsViewModel.cs.
|
private |
Number of created certificates during the last creation process.
Definition at line 81 of file CreateDocumentsViewModel.cs.
|
private |
Number of created time forms during the last creation process.
Definition at line 108 of file CreateDocumentsViewModel.cs.
|
private |
Definition at line 199 of file CreateDocumentsViewModel.cs.
|
private |
Definition at line 116 of file CreateDocumentsViewModel.cs.
|
private |
Definition at line 202 of file CreateDocumentsViewModel.cs.
|
private |
Definition at line 200 of file CreateDocumentsViewModel.cs.
|
get |
List with all available Person objects.
Definition at line 88 of file CreateDocumentsViewModel.cs.
|
get |
List with all available SwimmingStyles
Definition at line 96 of file CreateDocumentsViewModel.cs.
|
get |
Command to create documents.
The type of document to create is determined by the command parameter (must be of type DocumentCreationTypes).
Definition at line 252 of file CreateDocumentsViewModel.cs.
|
get |
Dictionary to hold the for each type.
Definition at line 32 of file CreateDocumentsViewModel.cs.
|
get |
Dictionary to hold the for each type.
Definition at line 37 of file CreateDocumentsViewModel.cs.
|
get |
Indicates whether at leas one document creation process is currently running.
Definition at line 42 of file CreateDocumentsViewModel.cs.
|
getprivate set |
Collection of DocumentPlaceholderViewConfig objects that define the available placeholders for documents.
Definition at line 120 of file CreateDocumentsViewModel.cs.
|
getprivate set |
Collection view used to display the PlaceholderViewConfigs
Definition at line 129 of file CreateDocumentsViewModel.cs.