equal
deleted
inserted
replaced
1 using System; |
1 using System; |
2 using System.IO; |
2 using System.IO; |
3 using System.Net; |
3 using System.Net; |
|
4 using System.Reflection; |
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; |
7 using System.Windows.Media; |
8 using System.Windows.Media; |
8 using System.Windows.Media.Animation; |
9 using System.Windows.Media.Animation; |
9 using System.Windows.Navigation; |
10 using System.Windows.Navigation; |
|
11 using System.Globalization; |
|
12 using Microsoft.Surface.Presentation; |
|
13 using Microsoft.Surface.Presentation.Controls; |
|
14 |
10 using FingersDance.Data; |
15 using FingersDance.Data; |
11 using Microsoft.Surface.Presentation; |
|
12 using System.Globalization; |
|
13 using Microsoft.Surface.Presentation.Controls; |
|
14 using System.Reflection; |
|
15 using FingersDance.ViewModels; |
16 using FingersDance.ViewModels; |
16 |
17 |
17 namespace FingersDance.Control.UserPanel |
18 namespace FingersDance.Control.UserPanel |
18 { |
19 { |
19 public partial class UserControlUserPanel |
20 public partial class UserControlUserPanel |
24 public event EventHandler OnSuccessAnnotation; //Event to display ColorAnnotation from different Users |
25 public event EventHandler OnSuccessAnnotation; //Event to display ColorAnnotation from different Users |
25 public event EventHandler OnTagVisualisation; //Event to Mute all Players |
26 public event EventHandler OnTagVisualisation; //Event to Mute all Players |
26 public int id = 0; |
27 public int id = 0; |
27 public uint idcolor = 0; //The color of the Pivot Button |
28 public uint idcolor = 0; //The color of the Pivot Button |
28 private Cutting cut; |
29 private Cutting cut; |
|
30 private Project searchedProject; |
29 |
31 |
30 //variables for TagSound Control |
32 //variables for TagSound Control |
31 double baseOrientation = 0; |
33 double baseOrientation = 0; |
32 double deltaOrientation = 0; |
34 double deltaOrientation = 0; |
33 double lastdeltaOrientation = 0; |
35 double lastdeltaOrientation = 0; |
49 this.InitializeComponent(); |
51 this.InitializeComponent(); |
50 |
52 |
51 // Insert code required on object creation below this point. |
53 // Insert code required on object creation below this point. |
52 } |
54 } |
53 |
55 |
54 public UserControlUserPanel(int idPar, Color col, Cutting cutPar, String path, String AnnotationOrSearchMode) |
56 public UserControlUserPanel(int idPar, Color col, Cutting cutPar, String path, String AnnotationOrSearchMode, Project searchedProj) |
55 { |
57 { |
56 this.InitializeComponent(); |
58 this.InitializeComponent(); |
57 id = idPar; |
59 id = idPar; |
58 cut = cutPar; |
60 cut = cutPar; |
|
61 searchedProject = searchedProj; |
59 // We make the syncsrc load the good video and cutting |
62 // We make the syncsrc load the good video and cutting |
60 this.UserControlSyncSource.Load(path, col, cut); |
63 this.UserControlSyncSource.Load(path, col, cut); |
61 UserControlSyncSource.OnSuccessAnnotation += new EventHandler(UserControlSyncSource_OnSuccessAnnotation); |
64 UserControlSyncSource.OnSuccessAnnotation += new EventHandler(UserControlSyncSource_OnSuccessAnnotation); |
62 // We make the menu load the good xml |
65 // We make the menu load the good xml |
63 UCMenu.MenuXmlFile = (AnnotationOrSearchMode == "Search") ? "menu_search.xml" : "menu.xml"; |
66 UCMenu.MenuXmlFile = (AnnotationOrSearchMode == "Search") ? "menu_search.xml" : "menu.xml"; |