mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-28 15:00:36 +00:00
c15cbe2870
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
No EOL
532 B
C#
23 lines
No EOL
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();
|
|
}
|
|
}
|
|
} |