You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
57 lines
1.2 KiB
3 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.ComponentModel;
|
||
|
using System.Data;
|
||
|
using System.Drawing;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Windows.Forms;
|
||
|
|
||
|
namespace Stone.WinModule.AssembleAdmin
|
||
|
{
|
||
|
public partial class frmInfo : Form
|
||
|
{
|
||
|
public frmInfo()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
}
|
||
|
|
||
|
private void groupBox1_Enter(object sender, EventArgs e)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
public static void ShowTip(string message)
|
||
|
{
|
||
|
frmInfo frm = new frmInfo();
|
||
|
frm.lblState.Text = message;
|
||
|
frm.Show();
|
||
|
}
|
||
|
|
||
|
private void frmInfo_Load(object sender, EventArgs e)
|
||
|
{
|
||
|
this.timer1.Enabled = true;
|
||
|
}
|
||
|
|
||
|
private int n = 1;
|
||
|
private void timer1_Tick(object sender, EventArgs e)
|
||
|
{
|
||
|
this.label1.Text = n + " 秒后关闭";
|
||
|
this.label1.Update();
|
||
|
|
||
|
n--;
|
||
|
|
||
|
if (n <= 0)
|
||
|
{
|
||
|
this.timer1.Enabled = false;
|
||
|
this.Close();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void btnOK_Click(object sender, EventArgs e)
|
||
|
{
|
||
|
this.Close();
|
||
|
}
|
||
|
}
|
||
|
}
|