equal
deleted
inserted
replaced
17 public ProjectViewModel() { } |
17 public ProjectViewModel() { } |
18 |
18 |
19 public ProjectViewModel(Project p) |
19 public ProjectViewModel(Project p) |
20 { |
20 { |
21 project = p; |
21 project = p; |
|
22 _cuttingsDict = new Dictionary<string, Cutting>(); |
|
23 foreach(Cutting cut in project.Cuttings) |
|
24 { |
|
25 _cuttingsDict.Add(cut.Title, cut); |
|
26 } |
22 } |
27 } |
23 |
28 |
24 #endregion |
29 #endregion |
25 |
30 |
26 #region Properties |
31 #region Properties |
53 { |
58 { |
54 get { return project.VideoPath; } |
59 get { return project.VideoPath; } |
55 set { project.VideoPath = value; } |
60 set { project.VideoPath = value; } |
56 } |
61 } |
57 |
62 |
58 //public User User |
|
59 //{ |
|
60 // get { return project.User; } |
|
61 // set { project.User = value; } |
|
62 //} |
|
63 |
|
64 public List<Cutting> Cuttings |
63 public List<Cutting> Cuttings |
65 { |
64 { |
66 get { return project.Cuttings; } |
65 get { return project.Cuttings; } |
67 set { project.Cuttings = value; } |
66 set { project.Cuttings = value; } |
68 } |
67 } |