src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs
changeset 229 05aba5def1fc
parent 226 c0661ecf943e
--- a/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs	Tue Nov 24 12:57:18 2009 +0100
+++ b/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs	Tue Nov 24 22:08:57 2009 +0100
@@ -139,13 +139,14 @@
         }
 
         #region Timer
-        public void initTimer(Color col, Cutting cutPar)
+        public void initTimer(Cutting cutPar)
         {
             timer = new DispatcherTimer();
             timer.Interval = new TimeSpan(0, 0, 0, 0, 100);
             timer.Tick += new EventHandler(timer_Tick);
 
-            CurrentColor = col;
+            if(cutPar!=null)
+                CurrentColor = cutPar.Color;
 
             // DATA BINDING from the cutting sent in parameter (initialised before by the userPanel with the global project)
             cut = cutPar;