Axiom.RenderSystems.DirectX9.D3DRenderWindow.GetForm C# (CSharp) Method

GetForm() private method

private GetForm ( System.Windows.Forms windowHandle ) : Form
windowHandle System.Windows.Forms
return System.Windows.Forms.Form
		private SWF.Form GetForm( SWF.Control windowHandle )
		{
			SWF.Control tmp = windowHandle;

			if ( windowHandle == null )
			{
				return null;
			}
			if ( tmp is SWF.Form )
			{
				return (SWF.Form)tmp;
			}
			do
			{
				tmp = tmp.Parent;
			}
			while ( !( tmp is SWF.Form ) );

			return (SWF.Form)tmp;
		}