'Creates the Direct3D device which is used to render the scene.  Pops
up a message box and returns False on failure (returns True on success).'

def InitGraphics(self, handle):

    params = Direct3D.PresentParameters()
    params.Windowed = True
    params.SwapEffect = Direct3D.SwapEffect.Discard
    params.EnableAutoDepthStencil = True
    params.AutoDepthStencilFormat = Direct3D.DepthFormat.D16
    self.Device = Direct3D.Device(0, Direct3D.DeviceType.Hardware, handle, Direct3D.CreateFlags.SoftwareVertexProcessing, params)
    self.Device.RenderState.ZBufferEnable = True
    self.Device.Transform.Projection = DirectX.Matrix.PerspectiveFovLH((System.Math.PI / 4.0), 1, 1, 100)
    self.Device.Transform.View = DirectX.Matrix.LookAtLH(DirectX.Vector3(0, 3, (-5)), DirectX.Vector3(0, 0, 0), DirectX.Vector3(0, 1, 0))
    self.Device.RenderState.Ambient = Drawing.Color.White
    self.Paused = False
    return True
