Initial commit
This commit is contained in:
25
Functions/Update-Treeview.ps1
Normal file
25
Functions/Update-Treeview.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
function Update-TreeView {
|
||||
Param(
|
||||
[System.Collections.Hashtable] $ConfigurationData
|
||||
)
|
||||
if ($null -ne $ConfigurationData) {
|
||||
$tempBuilder = [TreeViewBuilder]::new()
|
||||
$tempBuilder.control = $treeView
|
||||
$tempBuilder.LoadTemplate($ConfigurationData['Resources'], "Deployment")
|
||||
$statusBar.SetText("Status", "Merged: Anzeige aktualisiert")
|
||||
$stateManager.SetState("isMerged", $true)
|
||||
$stateManager.UpdateAllButtons()
|
||||
|
||||
# Parameter und Variablen Panel aktualisieren
|
||||
Update-ParametersPanel -ConfigurationData $ConfigurationData
|
||||
|
||||
}
|
||||
else {
|
||||
$treeView.Nodes.Clear()
|
||||
$treeView.Nodes.Add('No merged data') | Out-Null
|
||||
$statusBar.SetText("Status", "Kein Merge vorhanden")
|
||||
|
||||
# Panel ausblenden
|
||||
$parametersPanel.Visible = $false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user