author | cavaliet |
Tue, 17 Nov 2009 13:40:58 +0100 | |
changeset 207 | 6405d0b7d085 |
parent 192 | 11083c390ce4 |
child 229 | 05aba5def1fc |
permissions | -rw-r--r-- |
55 | 1 |
using System; |
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
||
6 |
namespace FingersDance.Data |
|
7 |
{ |
|
69 | 8 |
public class Cutting |
55 | 9 |
{ |
192
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
10 |
private String _id; |
69 | 11 |
private List<Annotation> _annotList; |
12 |
private string _title; |
|
55 | 13 |
|
192
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
14 |
public Cutting(String idPar, String titlePar, List<Annotation> annotListPar) |
55 | 15 |
{ |
192
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
16 |
this._id = idPar; |
69 | 17 |
this._title = titlePar; |
18 |
this._annotList = annotListPar; |
|
55 | 19 |
} |
143 | 20 |
public Cutting() |
21 |
{} |
|
69 | 22 |
|
192
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
23 |
public String Id |
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
24 |
{ |
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
25 |
get { return _id; } |
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
26 |
set |
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
27 |
{ |
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
28 |
if (value == _id || String.IsNullOrEmpty(value)) |
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
29 |
return; |
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
30 |
_id = value; |
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
31 |
} |
11083c390ce4
Second step of data saving : id added for cutting and annotation, and now we can load/display/change the already existing projects.
cavaliet
parents:
143
diff
changeset
|
32 |
} |
69 | 33 |
public String Title |
34 |
{ |
|
35 |
get { return _title; } |
|
36 |
set |
|
37 |
{ |
|
38 |
if (value == _title || String.IsNullOrEmpty(value)) |
|
39 |
return; |
|
40 |
_title = value; |
|
41 |
} |
|
42 |
} |
|
43 |
public List<Annotation> AnnotList |
|
44 |
{ |
|
45 |
get { return _annotList; } |
|
46 |
set |
|
47 |
{ |
|
48 |
_annotList = value; |
|
49 |
} |
|
50 |
} |
|
51 |
||
55 | 52 |
} |
53 |
} |