private void OnEngineRemoveNode(Node node) { if (!(node is MySensorsNode)) return; MySensorsNode n = (MySensorsNode)node; if (gateway.GetNode(n.nodeId) != null) gateway.RemoveNode(n.nodeId); }
private void OnEngineRemoveNode(Node node) { if (!(node is MySensorsNode)) { return; } MySensorsNode n = (MySensorsNode)node; if (gateway.GetNode(n.nodeId) != null) { gateway.RemoveNode(n.nodeId); } }