Exemplo 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);
     }
 }
Exemplo 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;
     }
 }
Exemplo 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;
     }
 }
Exemplo 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 {
         }
     }
 }