private RepeatBehavior(RepeatBehaviorKind kind, double count, TimeSpan duration) { this.kind = kind; this.count = count; this.duration = duration; this.padding = 0; }
private RepeatBehavior (RepeatBehaviorKind kind, double count, TimeSpan duration) { this.kind = kind; this.count = count; this.duration = duration; this.padding = 0; }
public RepeatBehavior (TimeSpan duration) { if (duration.Ticks < 0) throw new ArgumentOutOfRangeException ("duration"); kind = RepeatBehaviorKind.TimeSpan; this.duration = duration; count = 0; padding = 0; }
public RepeatBehavior (double count) { if ((count < 0) || Double.IsNaN (count) || Double.IsInfinity (count)) throw new ArgumentOutOfRangeException ("count"); kind = RepeatBehaviorKind.Count; this.count = count; duration = TimeSpan.Zero; padding = 0; }
public RepeatBehavior(TimeSpan duration) { if (duration.Ticks < 0) { throw new ArgumentOutOfRangeException("duration"); } kind = RepeatBehaviorKind.TimeSpan; this.duration = duration; count = 0; padding = 0; }
public RepeatBehavior(double count) { if ((count < 0) || Double.IsNaN(count) || Double.IsInfinity(count)) { throw new ArgumentOutOfRangeException("count"); } kind = RepeatBehaviorKind.Count; this.count = count; duration = TimeSpan.Zero; padding = 0; }