src/FingersDance.Data/Cutting.cs
changeset 229 05aba5def1fc
parent 192 11083c390ce4
--- a/src/FingersDance.Data/Cutting.cs	Tue Nov 24 12:57:18 2009 +0100
+++ b/src/FingersDance.Data/Cutting.cs	Tue Nov 24 22:08:57 2009 +0100
@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
+using System.Windows.Media;
 
 namespace FingersDance.Data
 {
@@ -9,8 +10,16 @@
     {
         private String _id;
         private List<Annotation> _annotList;
-        private string _title;
+        private String _title;
+        private Color _color;
 
+        public Cutting(String idPar, String titlePar, List<Annotation> annotListPar, Color col)
+        {
+            this._id = idPar;
+            this._title = titlePar;
+            this._annotList = annotListPar;
+            this._color = col;
+        }
         public Cutting(String idPar, String titlePar, List<Annotation> annotListPar)
         {
             this._id = idPar;
@@ -48,6 +57,16 @@
                 _annotList = value;
             }
         }
+        public Color Color
+        {
+            get { return _color; }
+            set
+            {
+                if (value == _color)
+                    return;
+                _color = value;
+            }
+        }
 
     }
 }