mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-26 10:46:52 -05:00
formInitialized is for closing the splash screen and showing the main form. fieldsInitialized is for setting up and not running updates until fields are ready to be updated. Arceus is now the initial species instead of language dependent (Abomasnow).
23 lines
532 B
C#
23 lines
532 B
C#
using System.Threading;
|
|
using System.Windows.Forms;
|
|
|
|
namespace PKHeX
|
|
{
|
|
public partial class SplashScreen : Form
|
|
{
|
|
public SplashScreen()
|
|
{
|
|
InitializeComponent();
|
|
new Thread(() =>
|
|
{
|
|
while (!Main.formInitialized)
|
|
Thread.Sleep(50);
|
|
|
|
if (InvokeRequired)
|
|
try { Invoke((MethodInvoker)Close); }
|
|
catch { Close(); }
|
|
else Close();
|
|
}).Start();
|
|
}
|
|
}
|
|
} |