author | cavaliet |
Wed, 28 Oct 2009 17:07:27 +0100 | |
changeset 182 | 25b49d4f1635 |
parent 148 | c379899e9c94 |
child 192 | 11083c390ce4 |
permissions | -rw-r--r-- |
143 | 1 |
using System; |
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using FingersDance.Data; |
|
6 |
||
7 |
namespace FingersDance.ViewModels |
|
8 |
{ |
|
9 |
public class ProjectViewModel : ViewModelBase |
|
10 |
{ |
|
182
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
11 |
private Project project = new Project(); |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
12 |
|
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
13 |
private Dictionary<String, Cutting> _cuttingsDict = new Dictionary<string,Cutting>(); |
143 | 14 |
|
15 |
#region Constructor |
|
16 |
||
17 |
public ProjectViewModel() { } |
|
18 |
||
19 |
public ProjectViewModel(Project p) |
|
20 |
{ |
|
21 |
project = p; |
|
22 |
} |
|
23 |
||
24 |
#endregion |
|
25 |
||
26 |
#region Properties |
|
148 | 27 |
|
28 |
public Project Project |
|
29 |
{ |
|
30 |
get { return project; } |
|
182
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
31 |
set { project = value; } |
148 | 32 |
} |
33 |
||
34 |
public string Date |
|
35 |
{ |
|
36 |
get { return project.Date; } |
|
37 |
set { project.Date = value; } |
|
38 |
} |
|
39 |
||
40 |
public string Name |
|
41 |
{ |
|
42 |
get { return project.Name; } |
|
43 |
set { project.Name = value; } |
|
44 |
} |
|
45 |
||
46 |
public string Description |
|
47 |
{ |
|
48 |
get { return project.Description; } |
|
49 |
set { project.Description = value; } |
|
50 |
} |
|
51 |
||
182
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
52 |
public String VideoPath |
143 | 53 |
{ |
182
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
54 |
get { return project.VideoPath; } |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
55 |
set { project.VideoPath = value; } |
143 | 56 |
} |
57 |
||
182
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
58 |
//public User User |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
59 |
//{ |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
60 |
// get { return project.User; } |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
61 |
// set { project.User = value; } |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
62 |
//} |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
63 |
|
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
64 |
public List<Cutting> Cuttings |
143 | 65 |
{ |
182
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
66 |
get { return project.Cuttings; } |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
67 |
set { project.Cuttings = value; } |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
68 |
} |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
69 |
|
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
70 |
public Dictionary<String, Cutting> CuttingsDict |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
71 |
{ |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
72 |
get { return _cuttingsDict; } |
25b49d4f1635
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.
cavaliet
parents:
148
diff
changeset
|
73 |
set { _cuttingsDict = value; } |
143 | 74 |
} |
75 |
||
76 |
#endregion |
|
77 |
} |
|
78 |
} |