can now leave networks
This commit is contained in:
parent
300a951730
commit
87496e9f4a
5 changed files with 33 additions and 14 deletions
|
@ -20,11 +20,18 @@ 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();
|
||||
|
@ -33,6 +40,7 @@ namespace WinUI
|
|||
{
|
||||
this.wrapPanel.Children.Add(
|
||||
new NetworkInfoView(
|
||||
handler,
|
||||
networks.ElementAt<ZeroTierNetwork>(i)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue