WaitForm.cs
683 Bytes
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 MoyaSignup
{
public partial class WaitForm : Form
{
public WaitForm()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (Program.HeartBeat.AddMilliseconds(4000) > System.DateTime.Now)
{
this.Close();
}
}
private void WaitForm_Load(object sender, EventArgs e)
{
this.BringToFront();
}
}
}