equal
deleted
inserted
replaced
44 _annotList = value; |
44 _annotList = value; |
45 base.OnPropertyChanged("AnnotList"); |
45 base.OnPropertyChanged("AnnotList"); |
46 } |
46 } |
47 } |
47 } |
48 |
48 |
49 public void setListFromAnnotations(List<Annotation> annotList, float annotWidth) |
49 public void setListFromAnnotations(List<Annotation> annotList, float annotWidth, Double scaleX) |
50 { |
50 { |
51 |
51 |
52 this._annotList = new List<AnnotationViewModel>(); |
52 this._annotList = new List<AnnotationViewModel>(); |
53 int i = 0; |
53 int i = 0; |
54 foreach (Annotation annot in annotList) |
54 foreach (Annotation annot in annotList) |
55 { |
55 { |
56 this._annotList.Add(new AnnotationViewModel(annot, annot.TcBegin - (i * annotWidth))); |
56 this._annotList.Add(new AnnotationViewModel(annot, annot.TcBegin - (i * annotWidth), 1/scaleX)); |
57 i++; |
57 i++; |
58 } |
58 } |
59 |
59 |
60 } |
60 } |
61 } |
61 } |