--- a/src/FingersDance.ViewModel/AnnotationViewModel.cs Fri Oct 02 18:49:07 2009 +0200
+++ b/src/FingersDance.ViewModel/AnnotationViewModel.cs Mon Oct 05 15:56:27 2009 +0200
@@ -13,10 +13,15 @@
private float _dur;
private String _gestureType;
- public AnnotationViewModel(Annotation a) {
+ private float _marginLeft;
+
+ public AnnotationViewModel(Annotation a, float marginLeft) {
this._tcBegin = a.TcBegin;
this._dur = a.Dur;
this._gestureType = a.GestureType;
+ this._marginLeft = marginLeft;
+
+ Console.WriteLine("_tcBegin = " + _tcBegin + ", _marginLeft = " + _marginLeft);
}
public float TcBegin
@@ -51,6 +56,17 @@
base.OnPropertyChanged("GestureType");
}
}
+ public float MarginLeft
+ {
+ get { return _marginLeft; }
+ set
+ {
+ if (value == _marginLeft || float.IsNaN(value))
+ return;
+ _marginLeft = value;
+ base.OnPropertyChanged("MarginLeft");
+ }
+ }
}
}