Files
firefox-addin-manager/MVVM/Models/PolicyCheckModel.ps1
T
2026-06-10 21:57:52 +02:00

25 lines
724 B
PowerShell

class PolicyCheckModel {
[string] $Status # OK | WARN | FEHLER | INFO
[string] $Policy
[string] $CurrentValue
[string] $Solution
[string] $RegistryPath
PolicyCheckModel([string]$status, [string]$policy, [string]$value, [string]$solution, [string]$regPath) {
$this.Status = $status
$this.Policy = $policy
$this.CurrentValue= $value
$this.Solution = $solution
$this.RegistryPath= $regPath
}
[string] StatusColor() {
switch ($this.Status) {
"FEHLER" { return "#FFCCCC" }
"WARN" { return "#FFF5CC" }
"OK" { return "#CCFFCC" }
default { return "#E8F0FF" }
}
}
}