can now leave networks

This commit is contained in:
Grant Limberg 2015-10-26 19:53:03 -07:00
parent 300a951730
commit 87496e9f4a
5 changed files with 33 additions and 14 deletions

View file

@ -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)));
}
}