src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs
changeset 143 9f157d9c725b
parent 121 32611257e99f
child 146 dd8ed4d3beb6
equal deleted inserted replaced
142:3d66ca73df55 143:9f157d9c725b
     5 using System.Windows.Controls;
     5 using System.Windows.Controls;
     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 
    11 
    11 namespace FingersDance.Control.UserPanel
    12 namespace FingersDance.Control.UserPanel
    12 {
    13 {
    13 	public partial class UserControlUserPanel
    14 	public partial class UserControlUserPanel
    14 	{
    15 	{
       
    16        // public int id = 0;
       
    17         Project _Project = new Project();
       
    18 
       
    19         public Project Project
       
    20         {
       
    21             get { return _Project; }
       
    22             set { _Project = value; }
       
    23         }
       
    24 
    15 		public UserControlUserPanel()
    25 		public UserControlUserPanel()
    16 		{
    26 		{
    17 			this.InitializeComponent();
    27 			this.InitializeComponent();
    18 
    28 
    19 			// Insert code required on object creation below this point.
    29 			// Insert code required on object creation below this point.
    20 		}
    30 		}
    21 
    31 
    22         public UserControlUserPanel(string path)
    32         public UserControlUserPanel(Project p, string path)
    23         {
    33         {
    24             this.InitializeComponent();
    34             this.InitializeComponent();
    25 
    35             _Project = p;
    26             this.UserControlSyncSource.Load(path);
    36             this.UserControlSyncSource.Load(path);
    27             // Insert code required on object creation below this point.
       
    28         }
    37         }
    29 	}
    38 	}
    30 }
    39 }