예제 #1
0
 private RepeatBehavior(RepeatBehaviorKind kind, double count, TimeSpan duration)
 {
     this.kind     = kind;
     this.count    = count;
     this.duration = duration;
     this.padding  = 0;
 }
예제 #2
0
파일: RepeatBehavior.cs 프로젝트: dfr0/moon
		private RepeatBehavior (RepeatBehaviorKind kind, double count, TimeSpan duration)
		{
			this.kind = kind;
			this.count = count;
			this.duration = duration;
			this.padding = 0;
		}
예제 #3
0
파일: RepeatBehavior.cs 프로젝트: dfr0/moon
		public RepeatBehavior (TimeSpan duration)
		{
			if (duration.Ticks < 0)
				throw new ArgumentOutOfRangeException ("duration");

			kind = RepeatBehaviorKind.TimeSpan;
			this.duration = duration;
			count = 0;
			padding = 0;
		}
예제 #4
0
파일: RepeatBehavior.cs 프로젝트: dfr0/moon
		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;
		}
예제 #5
0
        public RepeatBehavior(TimeSpan duration)
        {
            if (duration.Ticks < 0)
            {
                throw new ArgumentOutOfRangeException("duration");
            }

            kind          = RepeatBehaviorKind.TimeSpan;
            this.duration = duration;
            count         = 0;
            padding       = 0;
        }
예제 #6
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;
        }