Functions/New-IAWidgetConfigurationClockObject.ps1
Function New-IAWidgetConfigurationClockObject{ Param( [String]$EmptyColor = '#F1F1F1', [String]$ProgressColor = '#d9d9db', [String]$TimeFormat, [String]$DateFormat, [Bool]$ShowAnimation = $true, [Bool]$ShowDate = $true, [String]$TimeZoneId = "(GMT+01:00) Brussels, Copenhagen, Madrid, Paris" ) $IAWidgetConfigurationClockObject = New-Object -TypeName PSObject $IAWidgetConfigurationClockObject | Add-Member -MemberType NoteProperty -Name 'EmptyColor' -Value $EmptyColor $IAWidgetConfigurationClockObject | Add-Member -MemberType NoteProperty -Name 'ProgressColor' -Value $ProgressColor $IAWidgetConfigurationClockObject | Add-Member -MemberType NoteProperty -Name 'ShowAnimation' -Value $ShowAnimation $IAWidgetConfigurationClockObject | Add-Member -MemberType NoteProperty -Name 'ShowDate' -Value $ShowDate $IAWidgetConfigurationClockObject | Add-Member -MemberType NoteProperty -Name 'TimeZoneId' -Value $TimeZoneId if($TimeFormat){ $IAWidgetConfigurationClockObject | Add-Member -MemberType NoteProperty -Name 'TimeFormat' -Value $TimeFormat } if($DateFormat){ $IAWidgetConfigurationClockObject | Add-Member -MemberType NoteProperty -Name 'DateFormat' -Value $DateFormat } return $IAWidgetConfigurationClockObject } |