Beispiel #1
0
 public override FrameworkElement CreateDisplay(CircuitGlyph symbol, CircuitGlyph mainSymbol)
 {
     Tracer.Assert(this == symbol.Circuit);
     if (this.IsValidDisplay())
     {
         return(symbol.CreateDisplayGlyph(mainSymbol));
     }
     return(base.CreateDisplay(symbol, mainSymbol));
 }
Beispiel #2
0
 public override FrameworkElement CreateGlyph(CircuitGlyph symbol)
 {
     Tracer.Assert(this == symbol.Circuit);
     if (this.IsValidDisplay())
     {
         return(symbol.CreateDisplayGlyph(symbol));
     }
     else
     {
         return(symbol.CreateRectangularGlyph());
     }
 }