mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +00:00
3f38b123a3
mostly renaming things, includes a little bit of added sugar and splitting methods to simplify the codebase. all methods are now PascalCase
24 lines
No EOL
567 B
C#
24 lines
No EOL
567 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace PKHeX.WinForms
|
|
{
|
|
public partial class SplashScreen : Form
|
|
{
|
|
public SplashScreen()
|
|
{
|
|
InitializeComponent();
|
|
new Task(() =>
|
|
{
|
|
while (!Main.IsInitialized)
|
|
Thread.Sleep(50);
|
|
|
|
if (InvokeRequired)
|
|
try { Invoke((MethodInvoker)Close); }
|
|
catch { Close(); }
|
|
else Close();
|
|
}).Start();
|
|
}
|
|
}
|
|
} |