67 lines
1.5 KiB
C#
67 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Drawing.Text;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Kindlebox
|
|
{
|
|
public partial class Splash : Form
|
|
{
|
|
Timer timer = new Timer();
|
|
String version = "0.02";
|
|
|
|
public Splash()
|
|
{
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
private void Splash_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
lblVersion.Text = "v. " + version;
|
|
|
|
if (Properties.Settings.Default.RabbitFile == "")
|
|
{
|
|
timer.Interval = 5000;
|
|
timer.Tick += new EventHandler(timer_Tick_New);
|
|
timer.Start();
|
|
|
|
}
|
|
else
|
|
{
|
|
timer.Interval = 5000;
|
|
timer.Tick += new EventHandler(timer_Tick_Launch);
|
|
timer.Start();
|
|
}
|
|
|
|
}
|
|
|
|
private void timer_Tick_New(object sender, EventArgs e)
|
|
{
|
|
timer.Stop();
|
|
|
|
CreateRabbitry createRabbitry = new CreateRabbitry();
|
|
createRabbitry.Show();
|
|
|
|
this.Close();
|
|
}
|
|
|
|
private void timer_Tick_Launch(object sender, EventArgs e)
|
|
{
|
|
timer.Stop();
|
|
|
|
Launch launch = new Launch();
|
|
launch.Show();
|
|
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|