--- a/client/src/Iri.Modernisation.Controls/View/BookTimeLine/BookTimeLine.xaml.cs Fri Feb 12 12:24:46 2010 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/BookTimeLine/BookTimeLine.xaml.cs Fri Feb 12 15:57:01 2010 +0100
@@ -52,6 +52,7 @@
private bool _saveVideoViewerState { get; set; }
private void TimeSlider_ThumbDragCompleted(object sender, EventArgs e)
{
+ //Commands.TimeChange.Execute(null, DataContext);
if (_saveVideoViewerState)
{
@@ -109,8 +110,9 @@
int maxHi = 0;
foreach (List<Annotation> LAnnotation in VM.Annotations)
{
- LAnnotation.Sort((a, b) => TimeSpan.Compare( b.Duration,a.Duration));
- foreach (Annotation Annotation in LAnnotation)
+ List<Annotation> tempList = new List<Annotation>(LAnnotation);
+ tempList.Sort((a, b) => TimeSpan.Compare(b.Duration, a.Duration));
+ foreach (Annotation Annotation in tempList)
{
PolemicElementControl pol = new PolemicElementControl();
pol.SetValue(Canvas.ZIndexProperty, 10);
@@ -129,9 +131,9 @@
{
int actualTop = (int)Canvas.GetTop(lockedControl);
if (basi <= actualTop)
- {
- basi += 12;
- }
+ {
+ basi += 12;
+ }
}
}