src/FingersDance.Data/Cutting.cs
changeset 229 05aba5def1fc
parent 192 11083c390ce4
equal deleted inserted replaced
226:c0661ecf943e 229:05aba5def1fc
     1 using System;
     1 using System;
     2 using System.Collections.Generic;
     2 using System.Collections.Generic;
     3 using System.Linq;
     3 using System.Linq;
     4 using System.Text;
     4 using System.Text;
       
     5 using System.Windows.Media;
     5 
     6 
     6 namespace FingersDance.Data
     7 namespace FingersDance.Data
     7 {
     8 {
     8     public class Cutting
     9     public class Cutting
     9     {
    10     {
    10         private String _id;
    11         private String _id;
    11         private List<Annotation> _annotList;
    12         private List<Annotation> _annotList;
    12         private string _title;
    13         private String _title;
       
    14         private Color _color;
    13 
    15 
       
    16         public Cutting(String idPar, String titlePar, List<Annotation> annotListPar, Color col)
       
    17         {
       
    18             this._id = idPar;
       
    19             this._title = titlePar;
       
    20             this._annotList = annotListPar;
       
    21             this._color = col;
       
    22         }
    14         public Cutting(String idPar, String titlePar, List<Annotation> annotListPar)
    23         public Cutting(String idPar, String titlePar, List<Annotation> annotListPar)
    15         {
    24         {
    16             this._id = idPar;
    25             this._id = idPar;
    17             this._title = titlePar;
    26             this._title = titlePar;
    18             this._annotList = annotListPar;
    27             this._annotList = annotListPar;
    46             set
    55             set
    47             {
    56             {
    48                 _annotList = value;
    57                 _annotList = value;
    49             }
    58             }
    50         }
    59         }
       
    60         public Color Color
       
    61         {
       
    62             get { return _color; }
       
    63             set
       
    64             {
       
    65                 if (value == _color)
       
    66                     return;
       
    67                 _color = value;
       
    68             }
       
    69         }
    51 
    70 
    52     }
    71     }
    53 }
    72 }