equal
deleted
inserted
replaced
186 DragCompleted(this, new EventArgs()); |
186 DragCompleted(this, new EventArgs()); |
187 } |
187 } |
188 |
188 |
189 private void slider_ContactTapGesture(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
189 private void slider_ContactTapGesture(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
190 { |
190 { |
191 |
191 addAnnotation(); |
192 cutvm.AnnotList.Add(new AnnotationViewModel(new Annotation(180+(numAnnot-6)*20 - ((numAnnot-1) * annotWidth), 10, numAnnot.ToString()))); |
192 } |
|
193 |
|
194 public void addAnnotation() |
|
195 { |
|
196 cutvm.AnnotList.Add(new AnnotationViewModel(new Annotation(180 + (numAnnot - 6) * 20 - ((numAnnot - 1) * annotWidth), 10, numAnnot.ToString()))); |
193 tv.DataContext = null; |
197 tv.DataContext = null; |
194 tv.DataContext = cutvm; |
198 tv.DataContext = cutvm; |
195 numAnnot++; |
199 numAnnot++; |
196 } |
200 } |
197 |
|
198 |
201 |
199 } |
202 } |
200 } |
203 } |