--- a/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs Wed Nov 04 13:36:30 2009 +0100
+++ b/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs Wed Nov 04 16:28:01 2009 +0100
@@ -136,7 +136,7 @@
}
#region Timer
- public void initTimer(Color col, Cutting cutPar)
+ public void initTimer(Color col, CuttingViewModel cutVMPar)
{
timer = new DispatcherTimer();
timer.Interval = new TimeSpan(0, 0, 0, 0, 100);
@@ -151,8 +151,8 @@
//AnnotList.Add(new Annotation(200 - (2 * AnnotWidth), 50, "Saut 3"));
//AnnotList.Add(new Annotation(100 - (3 * AnnotWidth), 20, "Saut 4"));
//AnnotList.Add(new Annotation(120 - (4 * AnnotWidth), 50, "Saut 5"));
- cutPar = new Cutting("titre de cutting", AnnotList);
- CuttingVM = new CuttingViewModel(cutPar, AnnotWidth);
+ CuttingVM = new CuttingViewModel(new Cutting(cutVMPar.Title, AnnotList), AnnotWidth);
+ cutVMPar = CuttingVM;
tv.DataContext = CuttingVM;
}