예제 #1
0
        private void AddNewVertexControlWithoutPos(NodeViewModel nodeViewModel)
        {
            var vc = new VertexControl(nodeViewModel);

            if (this.model.ModelName == "GreenhouseTestModel")
            {
                vc = new VertexControlWithVCP(nodeViewModel);
            }
            this.graphArea.AddVertex(nodeViewModel, vc);
        }
예제 #2
0
        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);
        }