private void AddNewVertexControlWithoutPos(NodeViewModel nodeViewModel) { var vc = new VertexControl(nodeViewModel); if (this.model.ModelName == "GreenhouseTestModel") { vc = new VertexControlWithVCP(nodeViewModel); } this.graphArea.AddVertex(nodeViewModel, vc); }
private void AddNewVertexControl(NodeViewModel vertex) { var vc = new VertexControl(vertex); if (this.model.ModelName == "GreenhouseTestModel") { vc = new VertexControlWithVCP(vertex); } vc.SetPosition(this.position); this.graphArea.AddVertex(vertex, vc); }