private void button1_Click(object sender, EventArgs e)
{
alarmSaati = dateTimePicker1.Value;
timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (DateTime.Now >= alarmSaati)
{
AlarmCal();
}
}
private void button1_Click(object sender, EventArgs e)
{
alarmSaati = dateTimePicker1.Value;
timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (DateTime.Now >= alarmSaati)
{
AlarmCal();
}
}