src/FingersDance.Data/Cutting.cs
changeset 192 11083c390ce4
parent 143 9f157d9c725b
child 229 05aba5def1fc
--- a/src/FingersDance.Data/Cutting.cs	Tue Nov 10 13:47:58 2009 +0100
+++ b/src/FingersDance.Data/Cutting.cs	Thu Nov 12 16:15:19 2009 +0100
@@ -7,18 +7,29 @@
 {
     public class Cutting
     {
+        private String _id;
         private List<Annotation> _annotList;
         private string _title;
 
-        public Cutting(string titlePar, List<Annotation> annotListPar)
+        public Cutting(String idPar, String titlePar, List<Annotation> annotListPar)
         {
+            this._id = idPar;
             this._title = titlePar;
             this._annotList = annotListPar;
-            
         }
         public Cutting()
         {}
 
+        public String Id
+        {
+            get { return _id; }
+            set
+            {
+                if (value == _id || String.IsNullOrEmpty(value))
+                    return;
+                _id = value;
+            }
+        }
         public String Title
         {
             get { return _title; }