Esempio n. 1
0
 private void createAlarmButton_Click(object sender, EventArgs e)
 {
     clock.AddAlarm(
         alarmDatePicker.Value.Year,
         alarmDatePicker.Value.Month,
         alarmDatePicker.Value.Day,
         Int32.Parse(hourTextBox.Text),
         Int32.Parse(minuteTextBox.Text),
         descriptionTextBox.Text);
     this.Close();
     parentForm.Show();
 }