1 Star 0 Fork 57

rickel/NoIIS

forked from 奎宇工作室/NoIIS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
WaitMessageForm.cs 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
/* 项目:不用部署就运行网站
* 日期:2009.10.1
来源:奎宇工作室 整理
*/
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace StartExamples
{
public class WaitMessageForm : Form
{
private IContainer components;
private Label label1;
public WaitMessageForm()
{
this.InitializeComponent();
}
private void closeTimer_Tick(object sender, EventArgs e)
{
((Timer)sender).Stop();
((Timer)sender).Dispose();
base.Close();
}
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(WaitMessageForm));
this.label1 = new Label();
base.SuspendLayout();
this.label1.AutoSize = true;
this.label1.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
this.label1.Location = new Point(26, 26);
this.label1.Name = "label1";
this.label1.Size = new Size(0x205, 20);
this.label1.TabIndex = 0;
this.label1.Text = "请稍等,正在启动web服务器...";
this.label1.UseWaitCursor = true;
base.AccessibleDescription = "ASP.NET Development server loader";
base.AccessibleName = "Start Examples";
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = AutoScaleMode.Font;
base.CausesValidation = false;
base.ClientSize = new Size(0x23f, 70);
base.Controls.Add(this.label1);
base.FormBorderStyle = FormBorderStyle.None;
base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
base.Name = "WaitMessageForm";
base.StartPosition = FormStartPosition.CenterScreen;
this.Text = "加载中...";
base.UseWaitCursor = true;
base.ResumeLayout(false);
base.PerformLayout();
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
Timer timer = new Timer();
timer.Interval = 0xfa0;
timer.Tick += new EventHandler(this.closeTimer_Tick);
timer.Start();
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rickel/NoIIS.git
git@gitee.com:rickel/NoIIS.git
rickel
NoIIS
NoIIS
master

搜索帮助