Network list window opens with click on the menu item
This commit is contained in:
parent
e1f9f7b6dc
commit
7cf3d2caa1
8 changed files with 57 additions and 42 deletions
|
@ -20,18 +20,11 @@ namespace WinUI
|
|||
/// </summary>
|
||||
public partial class NetworksPage : UserControl
|
||||
{
|
||||
private APIHandler handler;
|
||||
|
||||
public NetworksPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetAPIHandler(APIHandler handler)
|
||||
{
|
||||
this.handler = handler;
|
||||
}
|
||||
|
||||
public void setNetworks(List<ZeroTierNetwork> networks)
|
||||
{
|
||||
this.wrapPanel.Children.Clear();
|
||||
|
@ -44,7 +37,6 @@ namespace WinUI
|
|||
{
|
||||
this.wrapPanel.Children.Add(
|
||||
new NetworkInfoView(
|
||||
handler,
|
||||
networks.ElementAt<ZeroTierNetwork>(i)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue