PKHeX/PKHeX.WinForms/Misc/SplashScreen.cs

23 lines
414 B
C#
Raw Normal View History

using System.Windows.Forms;
2014-06-28 21:22:05 +00:00
namespace PKHeX.WinForms;
public partial class SplashScreen : Form
2014-06-28 21:22:05 +00:00
{
public SplashScreen() => InitializeComponent();
private bool CanClose;
private void SplashScreen_FormClosing(object sender, FormClosingEventArgs e)
{
if (!CanClose)
e.Cancel = true;
}
public void ForceClose()
2014-06-28 21:22:05 +00:00
{
CanClose = true;
Close();
2014-06-28 21:22:05 +00:00
}
}