/// <summary> /// Sets the alarm. /// </summary> /// <returns> /// 1 on success, 0 on failure. /// </returns> /// <param name='alarmName'> /// The name of the alarm. /// </param> /// <param name='time'> /// The time that the alarm should /// go off on. /// </param> /// <param name='method'> /// The method to call when the /// alarm goes off. /// </param> public static int setAlarm(string alarmName, cTime time, CallFunc method) { cAlarm alarm = new cTimeAlarm(alarmName, time, method); mAlarms.AddAlarm(ref alarm); return(1); }
/// <summary> /// Sets the alarm. /// </summary> /// <returns> /// 1 on success, 0 on failure. /// </returns> /// <param name='alarmName'> /// The name of the alarm. /// </param> /// <param name='time'> /// The time that the alarm should /// go off on. /// </param> /// <param name='method'> /// The method to call when the /// alarm goes off. /// </param> public static int setAlarm(string alarmName, cTime time, CallFunc method) { cAlarm alarm = new cTimeAlarm(alarmName, time, method); mAlarms.AddAlarm(ref alarm); return 1; }