private void Unselect(Vertex v) { if (v.Pinned) { SelectedAndPinnedVertices--; } v.Selected = false; v.changeColor(vertexColor); // TODO: What if there was pinned before select? Back to pinnedColor? SelectedVertices.Remove(v); }
private void Select(Vertex v) { if (v == null) { return; } if (v.Pinned) { SelectedAndPinnedVertices++; } v.Selected = true; v.changeColor(selectVertexColor); SelectedVertices.Add(v); }
private void Unselect(Vertex v) { if (v.Pinned) SelectedAndPinnedVertices--; v.Selected = false; v.changeColor(vertexColor); // TODO: What if there was pinned before select? Back to pinnedColor? SelectedVertices.Remove(v); }
private void Select(Vertex v) { if (v == null) return; if (v.Pinned) SelectedAndPinnedVertices++; v.Selected = true; v.changeColor(selectVertexColor); SelectedVertices.Add(v); }