Beispiel #1
0
        public override FrameworkElement CreateGlyph(CircuitGlyph symbol)
        {
            Tracer.Assert(this == symbol.Circuit);
            string skin = SymbolShape.SensorAuto;

            switch (this.SensorType)
            {
            case LogicCircuit.SensorType.Series:
            case LogicCircuit.SensorType.Loop:
            case LogicCircuit.SensorType.Random:
                break;

            case LogicCircuit.SensorType.Manual:
                skin = SymbolShape.SensorManual;
                break;

            default:
                Tracer.Fail();
                break;
            }
            return(symbol.CreateSensorGlyph(skin));
        }