Index: ActiviteitenOpvolging/ProductiePitching/configs/ConfigsLoader.vb =================================================================== diff -u -r1759 -r1763 --- ActiviteitenOpvolging/ProductiePitching/configs/ConfigsLoader.vb (.../ConfigsLoader.vb) (revision 1759) +++ ActiviteitenOpvolging/ProductiePitching/configs/ConfigsLoader.vb (.../ConfigsLoader.vb) (revision 1763) @@ -266,7 +266,10 @@ Return New Dictionary(Of ActivityStateEnum, Color)(_colorsActivityReadOnly) End Get End Property - Public ReadOnly Property AllFinishedActivitiesColor As color + Public ReadOnly Property AllFinishedActivitiesColor As Color + + Public ReadOnly Property EmployeePhotoPath As String + Private ReadOnly _colorsEmployees As New List(Of Color) Public ReadOnly Property ColorsEmployees As List(Of Color) Get @@ -325,6 +328,8 @@ _AllFinishedActivitiesColor = GetColorFromHexStringValue(value) ElseIf identifier.Contains("ColorEmployee") Then _colorsEmployees.Add(GetColorFromHexStringValue(value)) + ElseIf identifier.Equals("EmployeePhotoPath") Then + _EmployeePhotoPath = value Else Throw New Exception($"Unknown configuration: '{line}'.") End If @@ -451,6 +456,11 @@ If _colorsEmployees.Count < NumberOfEmployees Then Throw New ConfigurationException($"The colors for the employees are not defined or are fewer than the amount of users {NumberOfEmployees}.") End If + + If _EmployeePhotoPath Is String.Empty Then + Throw New ConfigurationException("The path to employeephoto's is not defined.") + End If + End Sub #End Region