src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs
changeset 186 83615722dbab
parent 169 3a407c966e57
child 190 619ca3ae13c7
equal deleted inserted replaced
185:9b62e08d6167 186:83615722dbab
   134             //tv.Width = this.ActualWidth - 30;
   134             //tv.Width = this.ActualWidth - 30;
   135             
   135             
   136         }
   136         }
   137 
   137 
   138         #region Timer
   138         #region Timer
   139         public void initTimer(Color col, Cutting cutPar)
   139         public void initTimer(Color col, CuttingViewModel cutVMPar)
   140         {
   140         {
   141             timer = new DispatcherTimer();
   141             timer = new DispatcherTimer();
   142             timer.Interval = new TimeSpan(0, 0, 0, 0, 100);
   142             timer.Interval = new TimeSpan(0, 0, 0, 0, 100);
   143             timer.Tick += new EventHandler(timer_Tick);
   143             timer.Tick += new EventHandler(timer_Tick);
   144 
   144 
   149             AnnotList.Add(new Annotation(0, 10, "Axe Cam 1", CurrentColor));
   149             AnnotList.Add(new Annotation(0, 10, "Axe Cam 1", CurrentColor));
   150             //AnnotList.Add(new Annotation(100 - (1 * AnnotWidth), 70, "Mvt Cam 2"));
   150             //AnnotList.Add(new Annotation(100 - (1 * AnnotWidth), 70, "Mvt Cam 2"));
   151             //AnnotList.Add(new Annotation(200 - (2 * AnnotWidth), 50, "Saut 3"));
   151             //AnnotList.Add(new Annotation(200 - (2 * AnnotWidth), 50, "Saut 3"));
   152             //AnnotList.Add(new Annotation(100 - (3 * AnnotWidth), 20, "Saut 4"));
   152             //AnnotList.Add(new Annotation(100 - (3 * AnnotWidth), 20, "Saut 4"));
   153             //AnnotList.Add(new Annotation(120 - (4 * AnnotWidth), 50, "Saut 5"));
   153             //AnnotList.Add(new Annotation(120 - (4 * AnnotWidth), 50, "Saut 5"));
   154             cutPar = new Cutting("titre de cutting", AnnotList);
   154             CuttingVM = new CuttingViewModel(new Cutting(cutVMPar.Title, AnnotList), AnnotWidth);
   155             CuttingVM = new CuttingViewModel(cutPar, AnnotWidth);
   155             cutVMPar = CuttingVM;
   156             tv.DataContext = CuttingVM;
   156             tv.DataContext = CuttingVM;
   157 
   157 
   158         }
   158         }
   159 
   159 
   160         public void timerStart()
   160         public void timerStart()