forked from Crockan/MercuryToolbox
16 lines
222 B
PowerShell
16 lines
222 B
PowerShell
function Get-Widget {
|
|
param([string]$Name)
|
|
"widget:$Name"
|
|
}
|
|
|
|
class WidgetBuilder {
|
|
[string] Build([string]$Name) {
|
|
return $Name.ToUpperInvariant()
|
|
}
|
|
}
|
|
|
|
enum WidgetMode {
|
|
Fast = 1
|
|
Safe = 2
|
|
}
|