equal
deleted
inserted
replaced
31 #endregion |
31 #endregion |
32 |
32 |
33 public event EventHandler DragStarted; |
33 public event EventHandler DragStarted; |
34 public event EventHandler DragCompleted; |
34 public event EventHandler DragCompleted; |
35 public event EventHandler TimerTick; |
35 public event EventHandler TimerTick; |
|
36 //SAR |
|
37 public event EventHandler OnSuccessAnnotation; |
|
38 //ENDSAR |
36 |
39 |
37 private double totalmilliseconds; |
40 private double totalmilliseconds; |
38 |
41 |
39 private List<Annotation> AnnotList = new List<Annotation>(); |
42 private List<Annotation> AnnotList = new List<Annotation>(); |
40 private float AnnotWidth = 300 + 15; // The surfaceListBox adds 15 pixels between each item |
43 private float AnnotWidth = 300 + 15; // The surfaceListBox adds 15 pixels between each item |
279 tv.DataContext = CuttingVM; |
282 tv.DataContext = CuttingVM; |
280 AnnotWaiting = false; |
283 AnnotWaiting = false; |
281 } |
284 } |
282 |
285 |
283 } |
286 } |
|
287 //Raise Event to display Annotation in all Openned UserPanels |
|
288 if (annotOk) |
|
289 OnSuccessAnnotation(this, new EventArgs()); |
284 |
290 |
285 } |
291 } |
286 |
292 |
287 public void startOrEndAnnotation() |
293 public void startOrEndAnnotation() |
288 { |
294 { |
337 tv.DataContext = null; |
343 tv.DataContext = null; |
338 tv.DataContext = CuttingVM; |
344 tv.DataContext = CuttingVM; |
339 AnnotWaiting = false; |
345 AnnotWaiting = false; |
340 } |
346 } |
341 } |
347 } |
|
348 //Raise Event to display Annotation in all Openned UserPanels |
|
349 if(annotOk) |
|
350 OnSuccessAnnotation(this, new EventArgs()); |
342 } |
351 } |
343 |
352 |
344 private void listview_PreviewContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
353 private void listview_PreviewContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
345 { |
354 { |
346 FrameworkElement findSource = e.OriginalSource as FrameworkElement; |
355 FrameworkElement findSource = e.OriginalSource as FrameworkElement; |