7 using System.Windows.Media; |
7 using System.Windows.Media; |
8 using System.Windows.Media.Animation; |
8 using System.Windows.Media.Animation; |
9 using System.Windows.Shapes; |
9 using System.Windows.Shapes; |
10 using Iri.Modernisation.Data.Models; |
10 using Iri.Modernisation.Data.Models; |
11 using Iri.Modernisation.BaseMVVM.Commands; |
11 using Iri.Modernisation.BaseMVVM.Commands; |
|
12 using Iri.Modernisation.Controls.ViewModel; |
12 namespace Iri.Modernisation.Controls.View |
13 namespace Iri.Modernisation.Controls.View |
13 { |
14 { |
14 public partial class AnnotationMaker : UserControl |
15 public partial class AnnotationMaker : UserControl |
15 { |
16 { |
16 public AnnotationMaker() |
17 public AnnotationMaker() |
17 { |
18 { |
18 |
19 |
19 InitializeComponent(); |
20 InitializeComponent(); |
|
21 Commands.AnnotationMaker.FixAnnotationTime.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(FixAnnotationTime_Executed); |
20 Commands.HttpSenderResponse.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(HttpSenderResponse_Executed); |
22 Commands.HttpSenderResponse.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(HttpSenderResponse_Executed); |
21 |
23 } |
22 |
24 |
23 } |
25 void FixAnnotationTime_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) |
|
26 { |
|
27 EditableAnnotation.UpperRangeValue = EditableAnnotation.Maximum; |
|
28 EditableAnnotation.LowerRangeValue = EditableAnnotation.Minimum; |
|
29 } |
|
30 |
|
31 |
|
32 |
|
33 |
24 |
34 |
25 void HttpSenderResponse_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) |
35 void HttpSenderResponse_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) |
26 { |
36 { |
27 this.Dispatcher.BeginInvoke(() => MessageBox.Show((String)e.Parameter)); |
37 this.Dispatcher.BeginInvoke(() => MessageBox.Show((String)e.Parameter)); |
28 } |
38 } |