src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs
changeset 191 8a25a85f2656
parent 190 619ca3ae13c7
child 195 48b3139bb182
equal deleted inserted replaced
190:619ca3ae13c7 191:8a25a85f2656
    23         //public ContactEventHandler ContactDown;
    23         //public ContactEventHandler ContactDown;
    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();
       
    29         private Cutting cut;
    28         private Cutting cut;
    30 
    29 
    31         //variables for TagSound Control
    30         //variables for TagSound Control
    32         double baseOrientation = 0;
    31         double baseOrientation = 0;
    33         double deltaOrientation = 0;
    32         double deltaOrientation = 0;
    42             get { return cut; }
    41             get { return cut; }
    43             set { cut = value; }
    42             set { cut = value; }
    44         }
    43         }
    45         #endregion
    44         #endregion
    46 
    45 
    47         //#region Properties
       
    48         //public Project Project
       
    49         //{
       
    50         //    get { return _Project; }
       
    51         //    set { _Project = value; }
       
    52         //}
       
    53         //#endregion
       
    54 
       
    55         #region Constructors
    46         #region Constructors
    56         public UserControlUserPanel()
    47         public UserControlUserPanel()
    57 		{
    48 		{
    58 			this.InitializeComponent();
    49 			this.InitializeComponent();
    59 
    50 
    62 
    53 
    63         public UserControlUserPanel(int idPar, Color col, Cutting cutPar, string path)
    54         public UserControlUserPanel(int idPar, Color col, Cutting cutPar, string path)
    64         {
    55         {
    65             this.InitializeComponent();
    56             this.InitializeComponent();
    66             id = idPar;
    57             id = idPar;
    67             //_Project = p;
       
    68             cut = cutPar;
    58             cut = cutPar;
    69             this.UserControlSyncSource.Load(path, col, cut);
    59             this.UserControlSyncSource.Load(path, col, cut);
    70             UserControlSyncSource.OnSuccessAnnotation+=new EventHandler(UserControlSyncSource_OnSuccessAnnotation);
    60             UserControlSyncSource.OnSuccessAnnotation+=new EventHandler(UserControlSyncSource_OnSuccessAnnotation);
    71             //SAR -Initialize Tag Values
    61             //SAR -Initialize Tag Values
    72             InitializeDefinitions();
    62             InitializeDefinitions();