2015-09-24 07:01:15 +00:00
|
|
|
|
using System.Threading;
|
2017-06-18 01:37:19 +00:00
|
|
|
|
using System.Threading.Tasks;
|
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();
|
2017-06-18 01:37:19 +00:00
|
|
|
|
new Task(() =>
|
2015-09-24 07:01:15 +00:00
|
|
|
|
{
|
2017-06-18 01:37:19 +00:00
|
|
|
|
while (!Main.IsInitialized)
|
2015-09-24 07:01:15 +00:00
|
|
|
|
Thread.Sleep(50);
|
|
|
|
|
|
2018-05-13 02:07:32 +00:00
|
|
|
|
Invoke((MethodInvoker)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
|
|
|
|
}
|