111,126
社区成员
发帖
与我相关
我的任务
分享using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Alert alert;
private void timer1_Tick(object sender, EventArgs e)
{
if (radioButton1.Checked == true)
{
if (DateTime.Now.ToString() == "2009-5-6 02:00:00")
{
if (alert == null)
{
alert = new Alert(this.textBox1);
alert.ShowDialog();
timer1.Enabled = false;
}
}
}
}
private void Form1_Load(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Start();
}
}
}