PKHeX/PKHeX.WinForms/Misc/SplashScreen.cs
Kurt 595c7eb4c5 Split winforms to separate project
resources still are associated with winforms, eh
program still runs fine and I've replicated the mono build options. lmk
if this breaks stuff
2017-01-07 23:54:09 -08:00

23 lines
No EOL
541 B
C#

using System.Threading;
using System.Windows.Forms;
namespace PKHeX.WinForms
{
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();
}
}
}