equal
deleted
inserted
replaced
11 |
11 |
12 namespace FingersDance.Control.UserPanel |
12 namespace FingersDance.Control.UserPanel |
13 { |
13 { |
14 public partial class UserControlUserPanel |
14 public partial class UserControlUserPanel |
15 { |
15 { |
|
16 #region Variables |
|
17 |
|
18 public event EventHandler OnSuccessAnnotation; //Event to display ColorAnnotation from different Users |
16 public int id = 0; |
19 public int id = 0; |
|
20 public uint idcolor = 0; //The color of the Pivot Button |
17 Project _Project = new Project(); |
21 Project _Project = new Project(); |
|
22 #endregion |
18 |
23 |
|
24 #region Properties |
19 public Project Project |
25 public Project Project |
20 { |
26 { |
21 get { return _Project; } |
27 get { return _Project; } |
22 set { _Project = value; } |
28 set { _Project = value; } |
23 } |
29 } |
|
30 #endregion |
24 |
31 |
25 public UserControlUserPanel() |
32 #region Constructors |
|
33 public UserControlUserPanel() |
26 { |
34 { |
27 this.InitializeComponent(); |
35 this.InitializeComponent(); |
28 |
36 |
29 // Insert code required on object creation below this point. |
37 // Insert code required on object creation below this point. |
30 } |
38 } |
33 { |
41 { |
34 this.InitializeComponent(); |
42 this.InitializeComponent(); |
35 id = idPar; |
43 id = idPar; |
36 _Project = p; |
44 _Project = p; |
37 this.UserControlSyncSource.Load(path, col, _Project.Cutting); |
45 this.UserControlSyncSource.Load(path, col, _Project.Cutting); |
|
46 UserControlSyncSource.OnSuccessAnnotation+=new EventHandler(UserControlSyncSource_OnSuccessAnnotation); |
38 } |
47 } |
|
48 #endregion |
39 |
49 |
40 public void PlayerPause() |
50 public void PlayerPause() |
41 { |
51 { |
42 UserControlSyncSource.PlayerPause(); |
52 UserControlSyncSource.PlayerPause(); |
43 } |
53 } |
|
54 |
|
55 |
|
56 private void UserControlSyncSource_OnSuccessAnnotation(object sender, EventArgs e) |
|
57 { |
|
58 OnSuccessAnnotation(this, new EventArgs()); |
|
59 } |
|
60 |
|
61 public void UserControlSyncSource_DisplayAnnotation(int id, Brush b) |
|
62 { |
|
63 UserControlSyncSource.UserControlPlayer_DisplayAnnotation(id, b); |
|
64 } |
44 } |
65 } |
45 } |
66 } |