protected virtual void DrawSquareConnector(Graphics g) { Pen pen = ArtPalette.GetSimpleConnectorPenStyle().DrawingPen(); Brush brush = ArtPalette.GetSimpleConnectorPaintStyle().GetBrush(this.Rectangle); g.DrawRectangle(pen, this.Rectangle); }
// ------------------------------------------------------------------ /// <summary> /// Draws a blue 'x' using 'Dot' as the line style, with a transparent /// color. /// </summary> /// <param name="g">Graphics</param> // ------------------------------------------------------------------ protected virtual void DrawSimpleConnector(Graphics g) { Pen pen = ArtPalette.GetSimpleConnectorPenStyle().DrawingPen(); Brush brush = ArtPalette.GetSimpleConnectorPaintStyle().GetBrush( this.Rectangle); GraphicsPath path = new GraphicsPath(); // Diagonal line from top left to bottom right. g.DrawLine(pen, this.TopLeftCorner, this.BottomRightCorner); // Diagonal line from top right to bottom lrft. g.DrawLine(pen, this.TopRightCorner, this.BottomLeftCorner); }