private void populator_ConnectVertex(Object sender, ShapeVertexEventArgs args)
 {
 }
Esempio n. 2
0
        private void tracer_UpdateVertex(object sender, ShapeVertexEventArgs args)
        {
            // shape is TextShape
            if (this.vertexColors==null || !this.vertexColors.Contains(args.Vertex))
                return;

            PropertyGridShape shape = (PropertyGridShape)args.Shape;
            switch(this.vertexColors[args.Vertex])
            {
                case GraphColor.White:
                    shape.TitleBackColor = Color.White;
                    break;
                case GraphColor.Gray:
                    shape.TitleBackColor = Color.LightGray;
                    break;
                case GraphColor.Black:
                    shape.TitleBackColor = Color.Red;
                    break;
            }
        }