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