void SplashScreen_Load(object sender, EventArgs e)
{
pbSplashScreen.Image = Image.FromFile(Path.Combine(Path.Combine(SkinInfo.mpPaths.AvalonPath, "Media"), "splashscreen.png"));
lbStatus.Parent = pbSplashScreen;
lbStatus.BackColor = Color.Transparent;
lbStatus2.Parent = pbSplashScreen;
lbStatus2.BackColor = Color.Transparent;
if (skInfo.startFullScreen)
{
setXYPos(skInfo.startFullScreen);
// MP Set to start fullscreen - fullscreen splash
this.Size = new Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
this.Location = new Point(0, -1);
pbSplashScreen.Size = new Size(Screen.PrimaryScreen.Bounds.Width + 2, Screen.PrimaryScreen.Bounds.Height + 2);
}
else
{
// MP Not set to start fullscreen - small splash screen
setXYPos(skInfo.startFullScreen);
this.Size = new Size(600, 338);
this.Location = new Point((Screen.PrimaryScreen.Bounds.Width / 2) - 300, (Screen.PrimaryScreen.Bounds.Height / 2) - 169);
pbSplashScreen.Size = new Size(600, 338);
pbSplashScreen.Location = new Point(0, 0);
}
}