equal
deleted
inserted
replaced
1 using System; |
1 using System; |
|
2 using System.Collections.Generic; |
2 using System.IO; |
3 using System.IO; |
3 using System.Net; |
4 using System.Net; |
4 using System.Windows; |
5 using System.Windows; |
5 using System.Windows.Controls; |
6 using System.Windows.Controls; |
6 using System.Windows.Data; |
7 using System.Windows.Data; |
8 using System.Windows.Media.Animation; |
9 using System.Windows.Media.Animation; |
9 using System.Windows.Navigation; |
10 using System.Windows.Navigation; |
10 using System.Windows.Controls.Primitives; |
11 using System.Windows.Controls.Primitives; |
11 using Microsoft.Surface.Presentation.Controls; |
12 using Microsoft.Surface.Presentation.Controls; |
12 using System.Windows.Threading; |
13 using System.Windows.Threading; |
|
14 |
|
15 using FingersDance.Data; |
|
16 using FingersDance.ViewModels; |
13 |
17 |
14 namespace FingersDance.Control.TimeLine |
18 namespace FingersDance.Control.TimeLine |
15 { |
19 { |
16 public partial class UserControlTimeLine |
20 public partial class UserControlTimeLine |
17 { |
21 { |
83 public UserControlTimeLine() |
87 public UserControlTimeLine() |
84 { |
88 { |
85 this.InitializeComponent(); |
89 this.InitializeComponent(); |
86 |
90 |
87 // Insert code required on object creation below this point. |
91 // Insert code required on object creation below this point. |
|
92 |
88 } |
93 } |
89 |
94 |
90 public void initslider(double totalmilliseconds) |
95 public void initslider(double totalmilliseconds) |
91 { |
96 { |
92 slider.Maximum = totalmilliseconds; |
97 slider.Maximum = totalmilliseconds; |
|
98 |
|
99 |
|
100 // TEMP FOR DATA BINDING |
|
101 List<Annotation> annotList = new List<Annotation>(); |
|
102 annotList.Add(new Annotation(0, 10, "Axe Cam 1")); |
|
103 annotList.Add(new Annotation(10, 20, "Mvt Cam 2")); |
|
104 annotList.Add(new Annotation(30, 40, "Saut 3")); |
|
105 Cutting cut = new Cutting("titre de cutting", annotList); |
|
106 CuttingViewModel cutvm = new CuttingViewModel(cut); |
|
107 tv.DataContext = cut; |
|
108 |
|
109 |
93 } |
110 } |
94 |
111 |
95 #region Timer |
112 #region Timer |
96 public void initTimer() |
113 public void initTimer() |
97 { |
114 { |