client/src/Iri.Modernisation.Controls/ViewModel/ConsultationView/ConsultationViewVM.cs
equal
deleted
inserted
replaced
118 { |
118 { |
119 Commands.ClickMenu.CreateNewTextualAnnotation.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(CreateNewTextualAnnotation_Executed); |
119 Commands.ClickMenu.CreateNewTextualAnnotation.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(CreateNewTextualAnnotation_Executed); |
120 Commands.ConsultMenu.ClickBook.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(ClickBook_Executed); |
120 Commands.ConsultMenu.ClickBook.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(ClickBook_Executed); |
121 Commands.PolemicElement.SelectPolemicElement.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(SelectPolemicElement_Executed); |
121 Commands.PolemicElement.SelectPolemicElement.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(SelectPolemicElement_Executed); |
122 Commands.AnnotationMaker.NewAnnotationFinished.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(NewAnnotationFinished_Executed); |
122 Commands.AnnotationMaker.NewAnnotationFinished.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(NewAnnotationFinished_Executed); |
|
123 Commands.BookTimeLine.LeftClickOnElement.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(LeftClickOnElement_Executed); |
|
124 } |
|
125 |
|
126 void LeftClickOnElement_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) |
|
127 { |
|
128 TimeSpan TimeToGo = (TimeSpan)e.Parameter; |
|
129 PolemicElementVM ClickedElement = (PolemicElementVM)e.Source; |
|
130 if(ConsultationBookViewContextMenu.SelectedBook == ClickedElement.Chapter.Book) |
|
131 { |
|
132 ConsultationBookViewContextMenu.ActualVideoSourceVM.GoTo(TimeToGo); |
|
133 } |
123 } |
134 } |
124 |
135 |
125 void NewAnnotationFinished_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) |
136 void NewAnnotationFinished_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) |
126 { |
137 { |
127 Annotation createdAnnotation = ((Annotation)e.Parameter); |
138 Annotation createdAnnotation = ((Annotation)e.Parameter); |