equal
deleted
inserted
replaced
12 |
12 |
13 namespace FingersDance.Control.SyncSource |
13 namespace FingersDance.Control.SyncSource |
14 { |
14 { |
15 public partial class UserControlSyncSource |
15 public partial class UserControlSyncSource |
16 { |
16 { |
|
17 #region Variables |
|
18 public event EventHandler OnSuccessAnnotation; |
|
19 #endregion |
|
20 |
17 public UserControlSyncSource() |
21 public UserControlSyncSource() |
18 { |
22 { |
19 this.InitializeComponent(); |
23 this.InitializeComponent(); |
20 |
24 |
21 // Insert code required on object creation below this point. |
25 // Insert code required on object creation below this point. |
25 { |
29 { |
26 this.UserControlPlayer.initPlayer(path); |
30 this.UserControlPlayer.initPlayer(path); |
27 //Initialisation du Timer |
31 //Initialisation du Timer |
28 UCTimeLine.initTimer(col, projCutting); |
32 UCTimeLine.initTimer(col, projCutting); |
29 this.UserControlPlayer.playerPlay(); |
33 this.UserControlPlayer.playerPlay(); |
|
34 this.userControlTimeLine.OnSuccessAnnotation+=new EventHandler(userControlTimeLine_OnSuccessAnnotation); |
30 } |
35 } |
31 |
36 |
32 #region player |
37 #region player |
33 private void UserControlPlayer_PlayerOpened(object sender, EventArgs e) |
38 private void UserControlPlayer_PlayerOpened(object sender, EventArgs e) |
34 { |
39 { |
35 //Initialisation du slider |
40 //Initialisation du slider |
36 UCTimeLine.initslider(UserControlPlayer.TotalMilliseconds); |
41 UCTimeLine.initslider(UserControlPlayer.TotalMilliseconds); |
37 //Demarrage du Timer |
42 //Demarrage du Timer |
38 UCTimeLine.timerStart(); |
43 UCTimeLine.timerStart(); |
39 |
44 |
|
45 } |
|
46 |
|
47 //Set a bursh color to the stack panel in the Player |
|
48 public void UserControlPlayer_DisplayAnnotation(int id, Brush b) |
|
49 { |
|
50 UserControlPlayer.displayStackPanelAnnotations(id, b); |
40 } |
51 } |
41 #endregion |
52 #endregion |
42 |
53 |
43 #region TimeLine |
54 #region TimeLine |
44 |
55 |
49 } |
60 } |
50 |
61 |
51 |
62 |
52 private void UserControlTimeLine_DragCompleted(object sender, EventArgs e) |
63 private void UserControlTimeLine_DragCompleted(object sender, EventArgs e) |
53 { |
64 { |
|
65 } |
|
66 private void userControlTimeLine_OnSuccessAnnotation(object sender, EventArgs e) |
|
67 { |
|
68 OnSuccessAnnotation(this, new EventArgs()); |
54 } |
69 } |
55 #endregion |
70 #endregion |
56 |
71 |
57 |
72 |
58 #region SynSource pour chaque X milliseconds |
73 #region SynSource pour chaque X milliseconds |