/// <summary> /// Constructor /// </summary> /// <param name="panel"> The panel that this Manager controls</param> /// <param name="ld"> The domain for labeling strokes</param> public DisplayManager(ref SketchPanelLib.SketchPanel panel, EndPointMovedHandler endPointChange, GateRotatedHandler gateRotated, bool ColorStrokes = true) { this.panel = panel; // Add and configure feedback circuitColorFeedback = new ColorFeedback(ref panel); circuitMeshFeedback = new MeshHighlightingFeedback(ref panel); circuitEndpointFeedback = new EndPointHighlightFeedback(ref panel, endPointChange); ghostGateFeedback = new GhostGateFeedback(ref panel, gateRotated); currentErrors = new List <ErrorBoxHelp>(); //circuitParseErrorFeedback = new ParseErrorFeedback(panel); displayLabelTool = new DisplayLabelTool(ref panel); displayHelpTool = new DisplayHelpTool(ref panel); }