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

/Main/src/DynamicDataDisplay/DataSources/OneDimensional/RawPointEnumerator.cs

#
C# | 29 lines | 21 code | 6 blank | 2 comment | 0 complexity | 039807afd002d254574eda7c14eaea47 MD5 | raw file
 1using System.Collections;
 2using System.Windows;
 3
 4namespace Microsoft.Research.DynamicDataDisplay.DataSources
 5{
 6	public sealed class RawPointEnumerator : IPointEnumerator {
 7		private readonly IEnumerator enumerator; 
 8
 9		public RawPointEnumerator(RawDataSource dataSource) {
10			this.enumerator = dataSource.Data.GetEnumerator();
11		}
12
13		public bool MoveNext() {
14			return enumerator.MoveNext();
15		}
16
17		public void GetCurrent(ref Point p) {
18			p = (Point)enumerator.Current;
19		}
20
21		public void ApplyMappings(DependencyObject target) {
22			// do nothing here - no mapping supported
23		}
24
25		public void Dispose() {
26			// do nothing here
27		}
28	}
29}