Esempio n. 1
0
        private Pen GetDiagnosticsPen(DiagColor color)
        {
            if (color == DiagColor.Yellow)
            {
                return(_diagnosticsYellowPen);
            }

            return(_diagnosticsRedPen);
        }
Esempio n. 2
0
        private Brush GetDiagnosticsBrush(DiagColor color)
        {
            if (color == DiagColor.Yellow)
            {
                return(_diagnosticsYellowBrush);
            }

            return(_diagnosticsRedBrush);
        }
 public DiagnosticGeometry(DiagGeometryType type, DiagColor color, params Point[] vertices)
 {
     Type     = type;
     Color    = color;
     Vertices = vertices;
 }