equal
deleted
inserted
replaced
24 public event EventHandler OnSuccessAnnotation; //Event to display ColorAnnotation from different Users |
24 public event EventHandler OnSuccessAnnotation; //Event to display ColorAnnotation from different Users |
25 public event EventHandler OnTagVisualisation; //Event to Mute all Players |
25 public event EventHandler OnTagVisualisation; //Event to Mute all Players |
26 public int id = 0; |
26 public int id = 0; |
27 public uint idcolor = 0; //The color of the Pivot Button |
27 public uint idcolor = 0; //The color of the Pivot Button |
28 //Project _Project = new Project(); |
28 //Project _Project = new Project(); |
29 private CuttingViewModel cutVM; |
29 private Cutting cut; |
30 |
30 |
31 //variables for TagSound Control |
31 //variables for TagSound Control |
32 double baseOrientation = 0; |
32 double baseOrientation = 0; |
33 double deltaOrientation = 0; |
33 double deltaOrientation = 0; |
34 double lastdeltaOrientation = 0; |
34 double lastdeltaOrientation = 0; |
35 int lastSoundlevel = 0; |
35 int lastSoundlevel = 0; |
36 bool rise = true; //rise is true if the curse of the volume is positive |
36 bool rise = true; //rise is true if the curse of the volume is positive |
37 #endregion |
37 #endregion |
38 |
38 |
39 #region Properties |
39 #region Properties |
40 public CuttingViewModel CuttingVM |
40 public Cutting Cutting |
41 { |
41 { |
42 get { return cutVM; } |
42 get { return cut; } |
43 set { cutVM = value; } |
43 set { cut = value; } |
44 } |
44 } |
45 #endregion |
45 #endregion |
46 |
46 |
47 //#region Properties |
47 //#region Properties |
48 //public Project Project |
48 //public Project Project |
58 this.InitializeComponent(); |
58 this.InitializeComponent(); |
59 |
59 |
60 // Insert code required on object creation below this point. |
60 // Insert code required on object creation below this point. |
61 } |
61 } |
62 |
62 |
63 public UserControlUserPanel(int idPar, Color col, CuttingViewModel cutVMPar, string path) |
63 public UserControlUserPanel(int idPar, Color col, Cutting cutPar, string path) |
64 { |
64 { |
65 this.InitializeComponent(); |
65 this.InitializeComponent(); |
66 id = idPar; |
66 id = idPar; |
67 //_Project = p; |
67 //_Project = p; |
68 cutVM = cutVMPar; |
68 cut = cutPar; |
69 this.UserControlSyncSource.Load(path, col, cutVM); |
69 this.UserControlSyncSource.Load(path, col, cut); |
70 UserControlSyncSource.OnSuccessAnnotation+=new EventHandler(UserControlSyncSource_OnSuccessAnnotation); |
70 UserControlSyncSource.OnSuccessAnnotation+=new EventHandler(UserControlSyncSource_OnSuccessAnnotation); |
71 //SAR -Initialize Tag Values |
71 //SAR -Initialize Tag Values |
72 InitializeDefinitions(); |
72 InitializeDefinitions(); |
73 } |
73 } |
74 #endregion |
74 #endregion |