Ejemplo n.º 1
0
 /// <summary>
 ///   Copies the properties from another <see cref="Trigger" /> the current instance. This will not copy any properties associated with any derived triggers except those supporting the <see
 ///    cref="ITriggerDelay" /> interface.
 /// </summary>
 /// <param name="sourceTrigger"> The source <see cref="Trigger" /> . </param>
 public override void CopyProperties(Trigger sourceTrigger)
 {
     base.CopyProperties(sourceTrigger);
     if (sourceTrigger.GetType() == GetType()) {
         Subscription = ((EventTrigger)sourceTrigger).Subscription;
         ((EventTrigger)sourceTrigger).ValueQueries.CopyTo(ValueQueries);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 ///   Copies the properties from another <see cref="Trigger" /> the current instance. This will not copy any properties associated with any derived triggers except those supporting the <see
 ///    cref="ITriggerDelay" /> interface.
 /// </summary>
 /// <param name="sourceTrigger"> The source <see cref="Trigger" /> . </param>
 public override void CopyProperties(Trigger sourceTrigger)
 {
     base.CopyProperties(sourceTrigger);
     if (sourceTrigger.GetType() == GetType()) {
         StateChange = ((SessionStateChangeTrigger)sourceTrigger).StateChange;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 ///   Copies the properties from another <see cref="Trigger" /> the current instance. This will not copy any properties associated with any derived triggers except those supporting the <see
 ///    cref="ITriggerDelay" /> interface.
 /// </summary>
 /// <param name="sourceTrigger"> The source <see cref="Trigger" /> . </param>
 public override void CopyProperties(Trigger sourceTrigger)
 {
     base.CopyProperties(sourceTrigger);
     if (sourceTrigger.GetType() == GetType()) {
         DaysInterval = ((DailyTrigger)sourceTrigger).DaysInterval;
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 ///   Copies the properties from another <see cref="Trigger" /> the current instance. This will not copy any properties associated with any derived triggers except those supporting the <see
 ///    cref="ITriggerDelay" /> interface.
 /// </summary>
 /// <param name="sourceTrigger"> The source <see cref="Trigger" /> . </param>
 public override void CopyProperties(Trigger sourceTrigger)
 {
     base.CopyProperties(sourceTrigger);
     if (sourceTrigger.GetType() == GetType()) {
         DaysOfMonth = ((MonthlyTrigger)sourceTrigger).DaysOfMonth;
         MonthsOfYear = ((MonthlyTrigger)sourceTrigger).MonthsOfYear;
         try {
             RunOnLastDayOfMonth = ((MonthlyTrigger)sourceTrigger).RunOnLastDayOfMonth;
         } catch {
         }
     }
 }