summaryrefslogtreecommitdiff
path: root/windows/WinUI/ToolbarItem.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'windows/WinUI/ToolbarItem.xaml.cs')
-rw-r--r--windows/WinUI/ToolbarItem.xaml.cs28
1 files changed, 27 insertions, 1 deletions
diff --git a/windows/WinUI/ToolbarItem.xaml.cs b/windows/WinUI/ToolbarItem.xaml.cs
index 9ff7e860..b3a1aafd 100644
--- a/windows/WinUI/ToolbarItem.xaml.cs
+++ b/windows/WinUI/ToolbarItem.xaml.cs
@@ -24,7 +24,9 @@ namespace WinUI
/// </summary>
public partial class ToolbarItem : Window
{
- APIHandler handler = APIHandler.Instance;
+ private APIHandler handler = APIHandler.Instance;
+
+ NetworkList netList = null;
public ToolbarItem()
{
@@ -40,5 +42,29 @@ namespace WinUI
{
Console.WriteLine("PreviewTrayContextMenuOpen");
}
+
+ private void ToolbarItem_NodeIDClicked(object sender, System.Windows.RoutedEventArgs e)
+ {
+
+ }
+
+ private void ToolbarItem_ShowNetworksClicked(object sender, System.Windows.RoutedEventArgs e)
+ {
+ if (netList == null)
+ {
+ netList = new WinUI.NetworkList();
+ netList.Closed += ShowNetworksClosed;
+ }
+
+ if (!netList.IsVisible)
+ {
+ netList.Show();
+ }
+ }
+
+ private void ShowNetworksClosed(object sender, System.EventArgs e)
+ {
+ netList = null;
+ }
}
}