protected void PopulateTrigger(Trigger trigger) { if (trigger == null) throw new ArgumentNullException("trigger"); if (BeginDate != DateTime.MinValue) trigger.BeginDate = BeginDate; trigger.Disabled = Disabled; if (DurationMinutes != Int32.MinValue) trigger.DurationMinutes = DurationMinutes; if (EndDate != DateTime.MinValue) trigger.EndDate = EndDate; if (IntervalMinutes != Int32.MinValue) trigger.IntervalMinutes = IntervalMinutes; trigger.KillAtDurationEnd = KillAtDurationEnd; }
/// <summary> /// Bind a Trigger to the same interface the argument trigger is bound to. /// </summary> /// <param name="trigger">A bound Trigger. </param> internal void Bind(Trigger trigger) { Bind(trigger.iTaskTrigger); }