mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 13:03:06 +00:00
cced16dff4
Clearer to just have a spinning thread instead of a timer.
23 lines
No EOL
521 B
C#
23 lines
No EOL
521 B
C#
using System.Threading;
|
|
using System.Windows.Forms;
|
|
|
|
namespace PKHeX
|
|
{
|
|
public partial class SplashScreen : Form
|
|
{
|
|
public SplashScreen()
|
|
{
|
|
InitializeComponent();
|
|
new Thread(() =>
|
|
{
|
|
while (!Main.init)
|
|
Thread.Sleep(50);
|
|
|
|
if (InvokeRequired)
|
|
try { Invoke((MethodInvoker)Close); }
|
|
catch { Close(); }
|
|
else Close();
|
|
}).Start();
|
|
}
|
|
}
|
|
} |