Remove commented-out code in 'Invoke-WPFTab' function

This commit is contained in:
Mr.k 2024-10-25 13:13:25 +03:00
parent c0e8a14c8e
commit 85d8db1c4e
No known key found for this signature in database

View File

@ -22,8 +22,6 @@ function Invoke-WPFTab {
($sync.GetEnumerator()).where{$psitem.Key -in $filter} | ForEach-Object {
if ($ClickedTab -ne $PSItem.name) {
$sync[$PSItem.Name].IsChecked = $false
# $tabNumber = [int]($PSItem.Name -replace "WPFTab","" -replace "BT","") - 1
# $sync.$tabNav.Items[$tabNumber].IsSelected = $false
} else {
$sync["$ClickedTab"].IsChecked = $true
$tabNumber = [int]($ClickedTab-replace "WPFTab","" -replace "BT","") - 1