public List <AC.UniqueAddress> getDownedNodes(DownAction action)
        {
            switch (action)
            {
            case DownUnreachable _: return(_unreachable);

            case DownReachable _: return(reachableNodesAddress.Union(joining).ToList());

            case DownAll _: return(nodeAddress().Union(joining).ToList());
            }

            return(new List <AC.UniqueAddress>());
        }
Beispiel #2
0
 public override void TouchesBegan(NSSet touches, UIEvent evt)
 {
     base.TouchesBegan(touches, evt);
     UITouch[] arg = Enumerable.Where <UITouch>(Enumerable.OfType <UITouch>(touches), t => t.Phase == UITouchPhase.Began).ToArray();
     DownAction?.Invoke(this, arg);
 }