Beispiel #1
0
        public void UpdateStatusOnInitialLoad(enumNetPointType status)
        {
            switch (status)
            {
            case enumNetPointType.VCC: currentColor = colorVCC; break;

            case enumNetPointType.GND: currentColor = colorGND; break;

            default: currentColor = colorNone; break;
            }
            this.OnPaint(null);
        }
Beispiel #2
0
        /// <summary>
        /// 画实心圆
        /// </summary>
        /// <param name="board"></param>
        /// <param name="point"></param>
        /// <param name="originLU"></param>
        public static void DrawSolidCircle(Control board, enumNetPointType point, int originLUX, int originLUY)
        {
            int colorPoint = -1;

            switch (point)
            {
            case enumNetPointType.GND: colorPoint = pointColorGND; break;

            case enumNetPointType.VCC: colorPoint = pointColorVCC; break;

            default: colorPoint = pointColorNone; break;
            }

            DrawSolidCircle(board, colorPoint, new Point(originLUX + pointRadius, originLUY + pointRadius), pointRadius);
        }