Esempio n. 1
0
        /// <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));
                    }
                }
            }
        }
Esempio n. 2
0
            public AlarmOccurrence Copy()
            {
                AlarmOccurrence ao = new AlarmOccurrence(this);

                return(ao);
            }
Esempio n. 3
0
 public AlarmOccurrence(AlarmOccurrence ao)
 {
     this.Alarm     = ao.Alarm;
     this.DateTime  = ao.DateTime.Copy();
     this.Component = ao.Component;
 }
Esempio n. 4
0
 public AlarmOccurrence(AlarmOccurrence ao)
 {
     this.Alarm     = ao.Alarm;
     this.Period    = ao.Period.Copy();
     this.Component = ao.Component;
 }
Esempio n. 5
0
 public AlarmOccurrence Copy()
 {
     AlarmOccurrence ao = new AlarmOccurrence(this);
     return ao;
 }
Esempio n. 6
0
 public AlarmOccurrence(AlarmOccurrence ao)
 {
     this.Alarm = ao.Alarm;
     this.DateTime = ao.DateTime.Copy();
     this.Component = ao.Component;
 }
Esempio n. 7
0
 public AlarmOccurrence(AlarmOccurrence ao)
 {
     this.Alarm = ao.Alarm;
     this.Period = ao.Period.Copy();
     this.Component = ao.Component;
 }