using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ShareWifi.Views.Components
{
///
/// 进度条弹框消息
///
public partial class SimpleAlert : Form
{
public SimpleAlert()
{
InitializeComponent();
}
public static SimpleAlert getInstance()
{
return new SimpleAlert();
}
public void Show(string message)
{
lbMessage.Text = message;
Show();
}
private void SimpleAlert_Load(object sender, EventArgs e)
{
timer1.Start();
}
///
/// 500 ms 之后窗体自动关闭
///
///
///
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Stop();
Close();
}
}
}