diff -r 7ce946833eae -r 99d003723474 src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml.cs --- a/src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml.cs Thu Sep 17 13:06:22 2009 +0200 +++ b/src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml.cs Thu Sep 17 17:25:05 2009 +0200 @@ -25,11 +25,11 @@ private void UserControlPlayer_PlayerOpened(object sender, EventArgs e) { //Initialisation du Timer - UserControlTimeLine.initTimer(); + UCTimeLine.initTimer(); //Initialisation du slider - UserControlTimeLine.initslider(UserControlPlayer.TotalMilliseconds); + UCTimeLine.initslider(UserControlPlayer.TotalMilliseconds); //Demarrage du Timer - UserControlTimeLine.timerStart(); + UCTimeLine.timerStart(); } #endregion @@ -52,22 +52,27 @@ #region SynSource pour chaque X milliseconds private void UserControlTimeLine_TimerTick(object sender, EventArgs e) { - if (!UserControlTimeLine.IsDragging) + if (!UCTimeLine.IsDragging) { - UserControlTimeLine.Slider.Value = UserControlPlayer.Player.Position.TotalMilliseconds; + UCTimeLine.Slider.Value = UserControlPlayer.Player.Position.TotalMilliseconds; } - if (UserControlTimeLine.FinishedDragging) + if (UCTimeLine.FinishedDragging) { - int SliderValue = (int)UserControlTimeLine.Slider.Value; + int SliderValue = (int)UCTimeLine.Slider.Value; TimeSpan ts = new TimeSpan(0, 0, 0, 0, SliderValue); UserControlPlayer.Player.Position = ts; UserControlPlayer.playerPlay(); - UserControlTimeLine.IsDragging = false; - UserControlTimeLine.FinishedDragging = false; + UCTimeLine.IsDragging = false; + UCTimeLine.FinishedDragging = false; } } #endregion + + public UserControlTimeLine userControlTimeLine + { + get { return this.UCTimeLine; } + } } } \ No newline at end of file