public override void Draw(Graphics graphics) { if (graphics == null) { return; } MethodShape.DrawBrick(graphics, brickBrush1, brickBrush2, brickBrush3); graphics.FillRectangle(Brushes.Gray, 1.0f, 4.5f, 3.5f, 0.5f); graphics.FillRectangle(Brushes.Gray, 0.0f, 6.5f, 3.5f, 0.5f); graphics.FillRectangle(Brushes.Gray, 2.0f, 8.5f, 3.5f, 0.5f); }
public override void Draw(Graphics graphics) { if (graphics == null) { return; } GraphicsState state = graphics.Save(); graphics.TranslateTransform(17.0f, 0.0f); graphics.ScaleTransform(-1.0f, 1.0f); MethodShape.DrawBrick(graphics, brickBrush1, brickBrush2, brickBrush3); graphics.Restore(state); graphics.FillRectangle(Brushes.Gray, 1.0f, 4.5f, 3.5f, 0.5f); graphics.FillRectangle(Brushes.Gray, 0.0f, 6.5f, 3.5f, 0.5f); graphics.FillRectangle(Brushes.Gray, 2.0f, 8.5f, 3.5f, 0.5f); }