public void on_add_ap(object sender, EventArgs args) { int i = ied.AddAP(null); var n = new AccessPointNode(i, ied, templates); Nodes.Add(n); }
public void update_nodes() { Nodes.Clear(); if (ied.AccessPoint != null) { for (int i = 0; i < ied.AccessPoint.Length; i++) { var n = new AccessPointNode(i, ied, templates); n.Updated += (sender, what) => { OnUpdated(what); }; Nodes.Add(n); } } }