private void CreateAlarms() { int minutesBefore = (int)numAlarmTimeOffset.Value; foreach (AttackOrder order in SelectedOrders) { string message = "* " + order.Comment; AlarmTime alarm = new AlarmTime(order.SendTime.AddMinutes(-minutesBefore), message); m_AlarmHandler.WatchAlarm(alarm); } m_AlarmHandler.SaveAlarms(); }
private void btnSaveAlarms_Click(object sender, EventArgs e) { btnSaveAlarms.Enabled = false; m_AlarmHandler.SaveAlarms(); }