Move initial loading logic to splash screen, before the main interface is shown
77 lines
3.0 KiB
C#
77 lines
3.0 KiB
C#
namespace WolfLauncher
|
|
{
|
|
partial class SplashScreen
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
this.closeTimer = new System.Windows.Forms.Timer(this.components);
|
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// closeTimer
|
|
//
|
|
this.closeTimer.Enabled = true;
|
|
this.closeTimer.Interval = 5000;
|
|
this.closeTimer.Tick += new System.EventHandler(this.closeTimer_Tick);
|
|
//
|
|
// pictureBox1
|
|
//
|
|
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.pictureBox1.Image = global::WolfLauncher.Properties.Resources.splash1;
|
|
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
|
|
this.pictureBox1.Name = "pictureBox1";
|
|
this.pictureBox1.Size = new System.Drawing.Size(576, 192);
|
|
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
|
this.pictureBox1.TabIndex = 0;
|
|
this.pictureBox1.TabStop = false;
|
|
//
|
|
// SplashScreen
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(576, 192);
|
|
this.Controls.Add(this.pictureBox1);
|
|
this.DoubleBuffered = true;
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
|
this.Name = "SplashScreen";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "SplashScreen";
|
|
this.TopMost = true;
|
|
this.Load += new System.EventHandler(this.SplashScreen_Load);
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.PictureBox pictureBox1;
|
|
private System.Windows.Forms.Timer closeTimer;
|
|
}
|
|
} |