mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-09 22:53:51 -05:00
Improve 'Invoke-WPFTab' Parameter by specifying its type (as expected by the function) and make it Mandatory
This commit is contained in:
@ -10,7 +10,10 @@ function Invoke-WPFTab {
|
|||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
Param ($ClickedTab)
|
Param (
|
||||||
|
[Parameter(Mandatory,position=0)]
|
||||||
|
[string]$ClickedTab
|
||||||
|
)
|
||||||
|
|
||||||
$tabNav = Get-WinUtilVariables | Where-Object {$psitem -like "WPFTabNav"}
|
$tabNav = Get-WinUtilVariables | Where-Object {$psitem -like "WPFTabNav"}
|
||||||
$tabNumber = [int]($ClickedTab -replace "WPFTab","" -replace "BT","") - 1
|
$tabNumber = [int]($ClickedTab -replace "WPFTab","" -replace "BT","") - 1
|
||||||
|
Reference in New Issue
Block a user