src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs
changeset 182 25b49d4f1635
parent 162 0b9f989bcb37
child 183 026018ce69e5
equal deleted inserted replaced
179:97ef988c92c2 182:25b49d4f1635
     6 using System.Windows.Data;
     6 using System.Windows.Data;
     7 using System.Windows.Media;
     7 using System.Windows.Media;
     8 using System.Windows.Media.Animation;
     8 using System.Windows.Media.Animation;
     9 using System.Windows.Navigation;
     9 using System.Windows.Navigation;
    10 using FingersDance.Data;
    10 using FingersDance.Data;
       
    11 using FingersDance.ViewModels;
    11 
    12 
    12 namespace FingersDance.Control.UserPanel
    13 namespace FingersDance.Control.UserPanel
    13 {
    14 {
    14 	public partial class UserControlUserPanel
    15 	public partial class UserControlUserPanel
    15 	{
    16 	{
    16         #region Variables
    17         #region Variables
    17 
    18 
    18         public event EventHandler OnSuccessAnnotation;  //Event to display ColorAnnotation from different Users        
    19         public event EventHandler OnSuccessAnnotation;  //Event to display ColorAnnotation from different Users        
    19         public int id = 0;
    20         public int id = 0;
    20         public uint idcolor = 0;    //The color of the Pivot Button
    21         public uint idcolor = 0;    //The color of the Pivot Button
    21         Project _Project = new Project();
    22         //Project _Project = new Project();
       
    23         private CuttingViewModel cutVM;
       
    24 
    22         #endregion
    25         #endregion
    23 
    26 
    24         #region Properties
    27         #region Properties
    25         public Project Project
    28         public CuttingViewModel CuttingVM
    26         {
    29         {
    27             get { return _Project; }
    30             get { return cutVM; }
    28             set { _Project = value; }
    31             set { cutVM = value; }
    29         }
    32         }
    30         #endregion
    33         #endregion
       
    34 
       
    35         //#region Properties
       
    36         //public Project Project
       
    37         //{
       
    38         //    get { return _Project; }
       
    39         //    set { _Project = value; }
       
    40         //}
       
    41         //#endregion
    31 
    42 
    32         #region Constructors
    43         #region Constructors
    33         public UserControlUserPanel()
    44         public UserControlUserPanel()
    34 		{
    45 		{
    35 			this.InitializeComponent();
    46 			this.InitializeComponent();
    36 
    47 
    37 			// Insert code required on object creation below this point.
    48 			// Insert code required on object creation below this point.
    38 		}
    49 		}
    39 
    50 
    40         public UserControlUserPanel(int idPar, Color col, Project p, string path)
    51         public UserControlUserPanel(int idPar, Color col, Cutting cut, string path)
    41         {
    52         {
    42             this.InitializeComponent();
    53             this.InitializeComponent();
    43             id = idPar;
    54             id = idPar;
    44             _Project = p;
    55             //_Project = p;
    45             this.UserControlSyncSource.Load(path, col, _Project.Cutting);
    56             this.UserControlSyncSource.Load(path, col, cut);
    46             UserControlSyncSource.OnSuccessAnnotation+=new EventHandler(UserControlSyncSource_OnSuccessAnnotation);
    57             UserControlSyncSource.OnSuccessAnnotation+=new EventHandler(UserControlSyncSource_OnSuccessAnnotation);
    47         }
    58         }
    48         #endregion
    59         #endregion
    49 
    60 
    50         public void PlayerPause()
    61         public void PlayerPause()