mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-27 04:28:32 -05:00
23 lines
521 B
C#
23 lines
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();
|
|
}
|
|
}
|
|
} |