Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 private void btnSaveAlarms_Click(object sender, EventArgs e)
 {
     btnSaveAlarms.Enabled = false;
     m_AlarmHandler.SaveAlarms();
 }