public void ClearSelection() { foreach (NodeUi node in UiManager.GetNodes()) { node.selected = false; node.preSelected = false; } OnSelectionChange.Invoke(box.GetAllSelected()); }
public IEnumerable <NodeUi> GetSelectedNodes() { foreach (NodeUi node in UiManager.GetNodes()) { if (node.selected) { yield return(node); } } }