public MainWindow()
{
timer1.Interval = 1000;
timer1.Enabled = true;
timer1.Tick += new System.EventHandler (OnTimerEvent);
}
private void OnTimerEvent(object sender, EventArgs e)
{
if(DateTime.Now==Remintingtime)
{
Playsound();
}
}
private void Form1_Load(object sender, System.EventArgs e)
{
timer1.start();
}