/*
         * DrawTabPage
         */


        /// <summary>
        /// </summary>
        /// <param name="paintParams"></param>
        /// <exception cref="ArgumentNullException">
        /// <para>
        ///		<paramref name="paintParams"/> is <see langword="null"/>.
        /// </para>
        /// </exception>
        public void DrawTabPage(NuGenTabPagePaintParams paintParams)
        {
            if (paintParams == null)
            {
                throw new ArgumentNullException("paintParams");
            }

            Debug.Assert(paintParams.Graphics != null, "paintParams.Graphics != null");

            if (Application.RenderWithVisualStyles)
            {
                this.DrawTabPageBackgroundUsingVisualStyles(paintParams.Graphics, paintParams.Bounds);
            }
            else
            {
                this.DrawTabPageBackground(paintParams.Graphics, paintParams.Bounds);
            }
        }
		/*
		 * DrawTabPage
		 */


		/// <summary>
		/// </summary>
		/// <param name="paintParams"></param>
		/// <exception cref="ArgumentNullException">
		/// <para>
		///		<paramref name="paintParams"/> is <see langword="null"/>.
		/// </para>
		/// </exception>
		public void DrawTabPage(NuGenTabPagePaintParams paintParams)
		{
			if (paintParams == null)
			{
				throw new ArgumentNullException("paintParams");
			}

			Debug.Assert(paintParams.Graphics != null, "paintParams.Graphics != null");

			if (Application.RenderWithVisualStyles)
			{
				this.DrawTabPageBackgroundUsingVisualStyles(paintParams.Graphics, paintParams.Bounds);
			}
			else
			{
				this.DrawTabPageBackground(paintParams.Graphics, paintParams.Bounds);
			}
		}