PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/Main/src/DynamicDataDisplay/Charts/Axes/TimeSpan/MinorTimeSpanProvider.cs

#
C# | 17 lines | 15 code | 2 blank | 0 comment | 1 complexity | 21767693cca3a5d6fc0caabaec59e838 MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5
 6namespace Microsoft.Research.DynamicDataDisplay.Charts
 7{
 8	internal sealed class MinorTimeSpanTicksProvider : MinorTimeProviderBase<TimeSpan>
 9	{
10		public MinorTimeSpanTicksProvider(ITicksProvider<TimeSpan> owner) : base(owner) { }
11
12		protected override bool IsInside(TimeSpan value, Range<TimeSpan> range)
13		{
14			return range.Min < value && value < range.Max;
15		}
16	}
17}