public override void Invalidate(RectangleDouble rectToInvalidate)
        {
            rectToInvalidate.IntersectWithRectangle(LocalBounds);

            //rectToInvalidate = new rect_d(0, 0, Width, Height);

            Rectangle windowsRectToInvalidate = GetRectangleFromRectD(rectToInvalidate);

            if (WindowsFormsWindow != null)
            {
                WindowsFormsWindow.RequestInvalidate(windowsRectToInvalidate);
            }
        }
		public override void Invalidate(RectangleDouble rectToInvalidate)
		{
			rectToInvalidate.IntersectWithRectangle(LocalBounds);

			//rectToInvalidate = new rect_d(0, 0, Width, Height);

			Rectangle windowsRectToInvalidate = GetRectangleFromRectD(rectToInvalidate);
			if (WindowsFormsWindow != null)
			{
				WindowsFormsWindow.RequestInvalidate(windowsRectToInvalidate);
			}
		}