equal
deleted
inserted
replaced
7 { |
7 { |
8 [Serializable] |
8 [Serializable] |
9 public class Project |
9 public class Project |
10 { |
10 { |
11 private string _name = ""; |
11 private string _name = ""; |
12 private string _date = ""; |
12 private string _date = DateTime.Now.ToString(); |
13 private string _description = ""; |
13 private string _description = ""; |
14 private User _user = new User(); |
|
15 private Cutting _cutting = new Cutting(); |
|
16 |
14 |
|
15 private String _videoname = ""; |
|
16 private String _videopath = ""; |
|
17 |
|
18 //private User _user = new User(); |
|
19 //private Cutting _cutting = new Cutting(); |
|
20 private List<Cutting> _cuttings = new List<Cutting>(); |
|
21 |
17 #region Constructor |
22 #region Constructor |
18 |
23 |
19 public Project(string name, string date, string desc, User u, Cutting c) |
24 public Project(string videoName, string videoPath) |
|
25 { |
|
26 _videoname = videoName; |
|
27 _videopath = videoPath; |
|
28 } |
|
29 |
|
30 public Project(string name, string date, string desc) |
20 { |
31 { |
21 _date = date; |
32 _date = date; |
22 _description = desc; |
33 _description = desc; |
23 _name = name; |
34 _name = name; |
24 _user = u; |
35 //_user = u; |
25 _cutting = c; |
36 //_cutting = c; |
26 } |
37 } |
27 |
38 |
28 public Project(User u, Cutting c) |
39 //public Project(User u, Cutting c) |
29 { |
40 //{ |
30 _user = u; |
41 // _user = u; |
31 _cutting = c; |
42 // _cutting = c; |
32 } |
43 //} |
33 |
44 |
34 public Project() |
45 public Project() |
35 {} |
46 {} |
36 |
47 |
37 #endregion |
48 #endregion |
54 { |
65 { |
55 get { return _description; } |
66 get { return _description; } |
56 set { _description = value; } |
67 set { _description = value; } |
57 } |
68 } |
58 |
69 |
59 public User User |
70 public String VideoPath |
60 { |
71 { |
61 get { return _user; } |
72 get { return _videopath; } |
62 set { _user = value; } |
73 set { _videopath = value; } |
63 } |
74 } |
64 |
75 |
65 public Cutting Cutting |
76 //public User User |
|
77 //{ |
|
78 // get { return _user; } |
|
79 // set { _user = value; } |
|
80 //} |
|
81 |
|
82 //public Cutting Cutting |
|
83 //{ |
|
84 // get { return _cutting; } |
|
85 // set { _cutting = value; } |
|
86 //} |
|
87 |
|
88 public List<Cutting> Cuttings |
66 { |
89 { |
67 get { return _cutting; } |
90 get { return _cuttings; } |
68 set { _cutting = value; } |
91 set { _cuttings = value; } |
69 } |
92 } |
70 |
93 |
71 #endregion |
94 #endregion |
72 } |
95 } |
73 |
96 |