src/FingersDance.ViewModel/AnnotationViewModel.cs
changeset 55 1ec0ef228158
child 69 a4c44555f205
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.ViewModel/AnnotationViewModel.cs	Tue Sep 15 13:30:58 2009 +0200
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace FingersDance.ViewModel
+{
+    class AnnotationViewModel : ViewModelBase
+    {
+        private float _tcBegin;
+        private float _dur;
+        private String _gestureType;
+
+        public float tcBegin
+        {
+            get { return _tcBegin; }
+            set {
+                if (value == _tcBegin || float.IsNaN(value))
+                    return;
+                _tcBegin = value;
+                base.OnPropertyChanged("TcBegin");
+            }
+        }
+        public float dur
+        {
+            get { return _dur; }
+            set
+            {
+                if (value == _dur || float.IsNaN(value))
+                    return;
+                _dur = value;
+                base.OnPropertyChanged("Dur");
+            }
+        }
+        public String gestureType
+        {
+            get { return _gestureType; }
+            set
+            {
+                if (value == _gestureType || String.IsNullOrEmpty(value))
+                    return;
+                _gestureType = value;
+                base.OnPropertyChanged("GestureType");
+            }
+        }
+
+    }
+}