30 lines
791 B
C#
30 lines
791 B
C#
using System.Windows.Forms;
|
|
using CPSO.Properties;
|
|
|
|
namespace CPSO.Forms
|
|
{
|
|
public sealed partial class FrmSplash : Form
|
|
{
|
|
public FrmSplash()
|
|
{
|
|
InitializeComponent();
|
|
|
|
// Select the image
|
|
/*
|
|
Random rand = new Random(DateTime.Now.Millisecond);
|
|
int splashId = rand.Next(2) + 1;
|
|
//
|
|
if (splashId == 1)
|
|
BackgroundImage = Resources.Splash_01;
|
|
else if (splashId == 2)
|
|
BackgroundImage = Resources.Splash_02;
|
|
*/
|
|
BackgroundImage = Resources.Splash_03;
|
|
}
|
|
public void Close(int milliseconds)
|
|
{
|
|
System.Threading.Thread.Sleep(milliseconds);
|
|
Close();
|
|
}
|
|
}
|
|
} |