/// <summary> /// Handles the repetitions that occur from the <c>REPEAT</c> and /// <c>DURATION</c> properties. Each recurrence of the alarm will /// have its own set of generated repetitions. /// </summary> virtual protected void AddRepeatedItems() { if (Repeat != null) { int len = Occurrences.Count; for (int i = 0; i < len; i++) { AlarmOccurrence ao = Occurrences[i]; Date_Time AlarmTime = ao.DateTime.Copy(); for (int j = 0; j < Repeat; j++) { AlarmTime += Duration; Occurrences.Add(new AlarmOccurrence(this, AlarmTime.Copy(), ao.Component)); } } } }
public AlarmOccurrence Copy() { AlarmOccurrence ao = new AlarmOccurrence(this); return(ao); }
public AlarmOccurrence(AlarmOccurrence ao) { this.Alarm = ao.Alarm; this.DateTime = ao.DateTime.Copy(); this.Component = ao.Component; }
public AlarmOccurrence(AlarmOccurrence ao) { this.Alarm = ao.Alarm; this.Period = ao.Period.Copy(); this.Component = ao.Component; }
public AlarmOccurrence Copy() { AlarmOccurrence ao = new AlarmOccurrence(this); return ao; }
public AlarmOccurrence(AlarmOccurrence ao) { this.Alarm = ao.Alarm; this.DateTime = ao.DateTime.Copy(); this.Component = ao.Component; }
public AlarmOccurrence(AlarmOccurrence ao) { this.Alarm = ao.Alarm; this.Period = ao.Period.Copy(); this.Component = ao.Component; }