protected static void DrawIconHelper(ViewContext context, Icon icon, Rectangle iconRect, VisualOrientation orientation) { Debug.Assert(context != null); // Validate reference parameter if (context == null) throw new ArgumentNullException("context"); try { // Finally, just draw the icon and let the transforms do the rest context.Graphics.DrawIcon(icon, iconRect); } finally { } }