Jun 22, 2026, 12:41 PM
This commit is contained in:
@@ -50,6 +50,7 @@ $tvServers = $Window.FindName("tvServers")
|
||||
$btnAddServer = $Window.FindName("btnAddServer")
|
||||
$btnRemoveServer = $Window.FindName("btnRemoveServer")
|
||||
$gridDetails = $Window.FindName("gridDetails")
|
||||
$menuHostSlunk = $Window.FindName("menuHostSlunk")
|
||||
|
||||
# Initialize connection states cache per server
|
||||
$script:ServerConnectionStates = @{}
|
||||
@@ -271,6 +272,12 @@ $btnRemoveServer.Add_Click({
|
||||
}
|
||||
})
|
||||
|
||||
# Handle Main -> Host Slunk menu click
|
||||
$menuHostSlunk.Add_Click({
|
||||
Write-Log "Main -> Host Slunk menu item clicked."
|
||||
[System.Windows.MessageBox]::Show("Host Slunk menu option selected.", "Host Slunk", "OK", "Information")
|
||||
})
|
||||
|
||||
# 5. Connection logic
|
||||
$btnConnect.Add_Click({
|
||||
$server = $txtServerName.Text
|
||||
|
||||
@@ -1,7 +1,15 @@
|
||||
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="DBAToolBox - MS SQL Management" Height="550" Width="850" Background="#F0F0F0">
|
||||
<Grid Margin="10">
|
||||
<DockPanel>
|
||||
<!-- Top Menu -->
|
||||
<Menu DockPanel.Dock="Top" Background="#F5F5F5" BorderBrush="#CCCCCC" BorderThickness="0,0,0,1">
|
||||
<MenuItem Header="Main">
|
||||
<MenuItem x:Name="menuHostSlunk" Header="Host Slunk"/>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
|
||||
<Grid Margin="10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
@@ -87,4 +95,5 @@
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user