--- a/src/FingersDance.ViewModel/CuttingViewModel.cs Wed Oct 28 13:46:38 2009 +0100
+++ b/src/FingersDance.ViewModel/CuttingViewModel.cs Wed Oct 28 17:07:27 2009 +0100
@@ -9,12 +9,13 @@
{
public class CuttingViewModel : ViewModelBase
{
- private string _title;
+ private Cutting cut;
+
private List<AnnotationViewModel> _annotList = new List<AnnotationViewModel>();
public CuttingViewModel(Cutting c, float annotWidth) {
- this._title = c.Title;
+ cut = c;
this._annotList = new List<AnnotationViewModel>();
int i = 0;
foreach (Annotation annot in c.AnnotList)
@@ -25,14 +26,24 @@
}
+ public Cutting Cutting
+ {
+ get { return cut; }
+ set
+ {
+ cut = value;
+ base.OnPropertyChanged("Cutting");
+ }
+ }
+
public String Title
{
- get { return _title; }
+ get { return cut.Title; }
set
{
- if (value == _title || String.IsNullOrEmpty(value))
+ if (value == cut.Title || String.IsNullOrEmpty(value))
return;
- _title = value;
+ cut.Title = value;
base.OnPropertyChanged("Title");
}
}