src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs
changeset 196 e738cd9c1b99
parent 195 48b3139bb182
child 203 2948b34324bb
equal deleted inserted replaced
195:48b3139bb182 196:e738cd9c1b99
   316                     }
   316                     }
   317                 }
   317                 }
   318                 // if not, we mark the beginning
   318                 // if not, we mark the beginning
   319                 if (annotOk == true)
   319                 if (annotOk == true)
   320                 {
   320                 {
   321                     cut.AnnotList.Add(new Annotation("s_" + System.Guid.NewGuid(), AnnotTcBegin, 0, cut.AnnotList.Count.ToString(), CurrentColor));
   321                     Annotation annotation = new Annotation("s_" + System.Guid.NewGuid(), AnnotTcBegin, 0, gestureType, CurrentColor);
   322                     cut.AnnotList.Add(annotation);
   322                     cut.AnnotList.Add(annotation);
   323                     tv.DataContext = new CuttingViewModel(cut, AnnotWidth, tv.ScaleX);
   323                     tv.DataContext = new CuttingViewModel(cut, AnnotWidth, tv.ScaleX);
   324                     AnnotWaiting = true;
   324                     AnnotWaiting = true;
   325                 }
   325                 }
   326             }
   326             }