2015-09-24 07:01:15 +00:00
|
|
|
|
using System.Threading;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
2017-01-08 07:54:09 +00:00
|
|
|
|
namespace PKHeX.WinForms
|
2014-06-28 21:22:05 +00:00
|
|
|
|
{
|
|
|
|
|
public partial class SplashScreen : Form
|
|
|
|
|
{
|
2015-09-21 03:34:09 +00:00
|
|
|
|
public SplashScreen()
|
2014-06-28 21:22:05 +00:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2015-09-24 07:01:15 +00:00
|
|
|
|
new Thread(() =>
|
|
|
|
|
{
|
2015-11-06 06:59:55 +00:00
|
|
|
|
while (!Main.formInitialized)
|
2015-09-24 07:01:15 +00:00
|
|
|
|
Thread.Sleep(50);
|
|
|
|
|
|
|
|
|
|
if (InvokeRequired)
|
|
|
|
|
try { Invoke((MethodInvoker)Close); }
|
|
|
|
|
catch { Close(); }
|
2015-01-31 18:36:06 +00:00
|
|
|
|
else Close();
|
2015-09-24 07:01:15 +00:00
|
|
|
|
}).Start();
|
2014-06-28 21:22:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-01-31 18:36:06 +00:00
|
|
|
|
}
|