Пример #1
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;
            }
        }
 private void populator_ConnectVertex(Object sender, ShapeVertexEventArgs args)
 {
 }
Пример #3
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;
            }
        }
Пример #4
0
 private void populator_ConnectVertex(Object sender, ShapeVertexEventArgs args)
 {
 }