Public Sub ShowSplashScreen(FadeIn As Boolean, Duration As Int)
If FadeIn = True Then
SplashScr.RootPane.Alpha = 0
SplashScr.Show
SplashScr.RootPane.SetAlphaAnimated(Duration, 1.0)
Else
SplashScr.Show
End If
End Sub
Public Sub HideSplashScreen(FadeOut As Boolean, Duration As Int)
If FadeOut = True Then
Dim p As Pane = SplashScr.RootPane
p.SetAlphaAnimated(Duration, 0)
Wait For P_AnimationCompleted
End If
SplashScr.Close
End Sub