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
Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel Class Reference

ViewModel for creating various types of documents such as certificates, overview. More...

Inheritance diagram for Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel:
Vereinsmeisterschaften.Contracts.ViewModels.INavigationAware

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.
Parameters
parameterParameter that can be passed by the caller

 
void OnNavigatedFrom ()
 OnNavigatedFrom method to handle navigation away from this object.
 

Properties

Dictionary< DocumentCreationTypes, DocumentCreationConfigDocumentCreationConfigPerType = new Dictionary<DocumentCreationTypes, DocumentCreationConfig>() [get]
 Dictionary to hold the for each type.
 
Dictionary< DocumentCreationTypes, DocumentCreationStatusDocumentCreationStatusPerType = 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< PersonAvailablePersons [get]
 List with all available Person objects.
 
List< SwimmingStylesAvailableSwimmingStyles [get]
 List with all available SwimmingStyles
 
ObservableCollection< DocumentPlaceholderViewConfigPlaceholderViewConfigs [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
 

Detailed Description

ViewModel for creating various types of documents such as certificates, overview.

Definition at line 27 of file CreateDocumentsViewModel.cs.

Constructor & Destructor Documentation

◆ CreateDocumentsViewModel()

Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.CreateDocumentsViewModel ( IDocumentService documentService,
IPersonService personService,
IWorkspaceService workspaceService,
IDialogCoordinator dialogCoordinator,
ShellViewModel shellVM,
IEnumerable< IDocumentStrategy > documentStrategies )

Constructor for the CreateDocumentsViewModel class.

Parameters
documentServiceIDocumentService object
personServiceIPersonService object
workspaceServiceIWorkspaceService object
dialogCoordinatorIDialogCoordinator object
shellVMShellViewModel object used for dialog display
documentStrategiesList with IDocumentStrategy objects

Definition at line 214 of file CreateDocumentsViewModel.cs.

Member Function Documentation

◆ initPlaceholderViewConfigs()

void Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.initPlaceholderViewConfigs ( )
private

Initializes the PlaceholderViewConfigs collection with available placeholders.

Definition at line 134 of file CreateDocumentsViewModel.cs.

◆ OnNavigatedFrom()

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.

◆ OnNavigatedTo()

void Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.OnNavigatedTo ( object parameter)

OnNavigatedTo method to handle navigation to this object.

Parameters
parameterParameter that can be passed by the caller

Implements Vereinsmeisterschaften.Contracts.ViewModels.INavigationAware.

Definition at line 327 of file CreateDocumentsViewModel.cs.

◆ setDictionaryValue< T >()

void Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.setDictionaryValue< T > ( DocumentCreationTypes documentType,
T value,
string propertyName )
private

Definition at line 61 of file CreateDocumentsViewModel.cs.

Member Data Documentation

◆ _availableSwimmingStyles

List<SwimmingStyles> Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._availableSwimmingStyles = Enum.GetValues(typeof(SwimmingStyles)).Cast<SwimmingStyles>().Where(s => s != SwimmingStyles.Unknown).ToList()
private

Definition at line 92 of file CreateDocumentsViewModel.cs.

◆ _createDocumentCommand

ICommand Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._createDocumentCommand
private

Definition at line 248 of file CreateDocumentsViewModel.cs.

◆ _dialogCoordinator

IDialogCoordinator Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._dialogCoordinator
private

Definition at line 201 of file CreateDocumentsViewModel.cs.

◆ _documentService

IDocumentService Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._documentService
private

Definition at line 198 of file CreateDocumentsViewModel.cs.

◆ _documentStrategies

IEnumerable<IDocumentStrategy> Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._documentStrategies
private

Definition at line 203 of file CreateDocumentsViewModel.cs.

◆ _numberCreatedCertificates

int Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._numberCreatedCertificates = -1
private

Number of created certificates during the last creation process.

Definition at line 81 of file CreateDocumentsViewModel.cs.

◆ _numberCreatedTimeForms

int Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._numberCreatedTimeForms = -1
private

Number of created time forms during the last creation process.

Definition at line 108 of file CreateDocumentsViewModel.cs.

◆ _personService

IPersonService Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._personService
private

Definition at line 199 of file CreateDocumentsViewModel.cs.

◆ _placeholderViewConfigs

ObservableCollection<DocumentPlaceholderViewConfig> Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._placeholderViewConfigs = new ObservableCollection<DocumentPlaceholderViewConfig>()
private

Definition at line 116 of file CreateDocumentsViewModel.cs.

◆ _shellVM

ShellViewModel Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._shellVM
private

Definition at line 202 of file CreateDocumentsViewModel.cs.

◆ _workspaceService

IWorkspaceService Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel._workspaceService
private

Definition at line 200 of file CreateDocumentsViewModel.cs.

Property Documentation

◆ AvailablePersons

List<Person> Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.AvailablePersons
get

List with all available Person objects.

Definition at line 88 of file CreateDocumentsViewModel.cs.

◆ AvailableSwimmingStyles

List<SwimmingStyles> Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.AvailableSwimmingStyles
get

List with all available SwimmingStyles

Definition at line 96 of file CreateDocumentsViewModel.cs.

◆ CreateDocumentCommand

ICommand Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.CreateDocumentCommand
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.

◆ DocumentCreationConfigPerType

Dictionary<DocumentCreationTypes, DocumentCreationConfig> Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.DocumentCreationConfigPerType = new Dictionary<DocumentCreationTypes, DocumentCreationConfig>()
get

Dictionary to hold the for each type.

Definition at line 32 of file CreateDocumentsViewModel.cs.

◆ DocumentCreationStatusPerType

Dictionary<DocumentCreationTypes, DocumentCreationStatus> Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.DocumentCreationStatusPerType = new Dictionary<DocumentCreationTypes, DocumentCreationStatus>()
get

Dictionary to hold the for each type.

Definition at line 37 of file CreateDocumentsViewModel.cs.

◆ IsAnyDocumentCreationRunning

bool Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.IsAnyDocumentCreationRunning
get

Indicates whether at leas one document creation process is currently running.

Definition at line 42 of file CreateDocumentsViewModel.cs.

◆ PlaceholderViewConfigs

ObservableCollection<DocumentPlaceholderViewConfig> Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.PlaceholderViewConfigs
getprivate set

Collection of DocumentPlaceholderViewConfig objects that define the available placeholders for documents.

Definition at line 120 of file CreateDocumentsViewModel.cs.

◆ PlaceholderViewConfigsView

ICollectionView Vereinsmeisterschaften.ViewModels.CreateDocumentsViewModel.PlaceholderViewConfigsView
getprivate set

Collection view used to display the PlaceholderViewConfigs

Definition at line 129 of file CreateDocumentsViewModel.cs.


The documentation for this class was generated from the following file: