summaryrefslogtreecommitdiff
path: root/windows/WinUI/NetworksPage.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'windows/WinUI/NetworksPage.xaml.cs')
-rw-r--r--windows/WinUI/NetworksPage.xaml.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/windows/WinUI/NetworksPage.xaml.cs b/windows/WinUI/NetworksPage.xaml.cs
new file mode 100644
index 00000000..60ae0b88
--- /dev/null
+++ b/windows/WinUI/NetworksPage.xaml.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace WinUI
+{
+ /// <summary>
+ /// Interaction logic for NetworksPage.xaml
+ /// </summary>
+ public partial class NetworksPage : UserControl
+ {
+ public NetworksPage()
+ {
+ InitializeComponent();
+ }
+
+ public void setNetworks(List<ZeroTierNetwork> networks)
+ {
+ this.wrapPanel.Children.Clear();
+
+ for (int i = 0; i < networks.Count; ++i)
+ {
+ this.wrapPanel.Children.Add(
+ new NetworkInfoView(
+ networks.ElementAt<ZeroTierNetwork>(i)));
+ }
+ }
+ }
+}