2019-01-05 06:46:52 +00:00
|
|
|
|
using System.Windows.Forms;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
|
2022-02-09 05:46:16 +00:00
|
|
|
|
namespace PKHeX.WinForms;
|
|
|
|
|
|
|
|
|
|
public partial class SplashScreen : Form
|
2014-06-28 21:22:05 +00:00
|
|
|
|
{
|
2022-02-09 05:46:16 +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
|
|
|
|
{
|
2022-02-09 05:46:16 +00:00
|
|
|
|
CanClose = true;
|
|
|
|
|
Close();
|
2014-06-28 21:22:05 +00:00
|
|
|
|
}
|
2022-02-09 05:46:16 +00:00
|
|
|
|
}
|