📄 splash.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
//Ismael Chivite
//ESRI Redlands
//March 2005
namespace EvacuationRoutes
{
/// <summary>
/// Summary description for Splash.
/// </summary>
public class Splash : System.Windows.Forms.Form
{
private System.Windows.Forms.PictureBox ImgSpalsh;
private System.Windows.Forms.Label LblStatus;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public Splash()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
public void SetStatus(string sMessage)
{
this.Refresh();
this.LblStatus.Text = sMessage;
this.LblStatus.Refresh();
}
#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()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Splash));
this.ImgSpalsh = new System.Windows.Forms.PictureBox();
this.LblStatus = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// ImgSpalsh
//
this.ImgSpalsh.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ImgSpalsh.BackgroundImage")));
this.ImgSpalsh.Image = ((System.Drawing.Image)(resources.GetObject("ImgSpalsh.Image")));
this.ImgSpalsh.Location = new System.Drawing.Point(0, 0);
this.ImgSpalsh.Name = "ImgSpalsh";
this.ImgSpalsh.Size = new System.Drawing.Size(720, 448);
this.ImgSpalsh.TabIndex = 0;
this.ImgSpalsh.TabStop = false;
//
// LblStatus
//
this.LblStatus.BackColor = System.Drawing.Color.White;
this.LblStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.LblStatus.Location = new System.Drawing.Point(32, 312);
this.LblStatus.Name = "LblStatus";
this.LblStatus.Size = new System.Drawing.Size(280, 23);
this.LblStatus.TabIndex = 1;
this.LblStatus.Text = "Loading 2D view...";
//
// Splash
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(720, 448);
this.Controls.Add(this.LblStatus);
this.Controls.Add(this.ImgSpalsh);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Splash";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Splash";
this.TopMost = true;
this.ResumeLayout(false);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -