143
|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
|
|
6 |
namespace FingersDance.Data |
|
7 |
{ |
|
8 |
[Serializable] |
|
9 |
public class Project |
|
10 |
{ |
148
|
11 |
private string _name = ""; |
|
12 |
private string _date = ""; |
|
13 |
private string _description = ""; |
143
|
14 |
private User _user = new User(); |
|
15 |
private Cutting _cutting = new Cutting(); |
|
16 |
|
|
17 |
#region Constructor |
148
|
18 |
|
|
19 |
public Project(string name, string date, string desc, User u, Cutting c) |
|
20 |
{ |
|
21 |
_date = date; |
|
22 |
_description = desc; |
|
23 |
_name = name; |
|
24 |
_user = u; |
|
25 |
_cutting = c; |
|
26 |
} |
|
27 |
|
143
|
28 |
public Project(User u, Cutting c) |
|
29 |
{ |
|
30 |
_user = u; |
|
31 |
_cutting = c; |
|
32 |
} |
|
33 |
|
|
34 |
public Project() |
|
35 |
{} |
|
36 |
|
|
37 |
#endregion |
|
38 |
|
|
39 |
#region Properties |
148
|
40 |
|
|
41 |
public string Date |
|
42 |
{ |
|
43 |
get { return _date; } |
|
44 |
set { _date = value; } |
|
45 |
} |
|
46 |
|
|
47 |
public string Name |
|
48 |
{ |
|
49 |
get { return _name; } |
|
50 |
set { _name = value; } |
|
51 |
} |
|
52 |
|
|
53 |
public string Description |
|
54 |
{ |
|
55 |
get { return _description; } |
|
56 |
set { _description = value; } |
|
57 |
} |
|
58 |
|
143
|
59 |
public User User |
|
60 |
{ |
|
61 |
get { return _user; } |
|
62 |
set { _user = value; } |
|
63 |
} |
148
|
64 |
|
143
|
65 |
public Cutting Cutting |
|
66 |
{ |
|
67 |
get { return _cutting; } |
|
68 |
set { _cutting = value; } |
|
69 |
} |
|
70 |
|
|
71 |
#endregion |
|
72 |
} |
|
73 |
|
|
74 |
} |