src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs
changeset 146 dd8ed4d3beb6
parent 131 9331c3dea175
parent 143 9f157d9c725b
child 150 569925b65604
equal deleted inserted replaced
145:42cf4dbc473b 146:dd8ed4d3beb6
     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 	{
    15         public int id = 0;
    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         }
    16 
    24 
    17 		public UserControlUserPanel()
    25 		public UserControlUserPanel()
    18 		{
    26 		{
    19 			this.InitializeComponent();
    27 			this.InitializeComponent();
    20 
    28 
    21 			// Insert code required on object creation below this point.
    29 			// Insert code required on object creation below this point.
    22 		}
    30 		}
    23 
    31 
    24         public UserControlUserPanel(string path)
    32         public UserControlUserPanel(Project p, string path)
    25         {
    33         {
    26             this.InitializeComponent();
    34             this.InitializeComponent();
    27 
    35             _Project = p;
    28             this.UserControlSyncSource.Load(path);
    36             this.UserControlSyncSource.Load(path);
    29             // Insert code required on object creation below this point.
       
    30         }
    37         }
    31 	}
    38 	}
    32 }
    39 }