src/FingersDance.ViewModel/CuttingViewModel.cs
changeset 167 206f07a8d887
parent 146 dd8ed4d3beb6
child 182 25b49d4f1635
equal deleted inserted replaced
166:33c2e634df13 167:206f07a8d887
    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     }