src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs
changeset 143 9f157d9c725b
parent 121 32611257e99f
child 146 dd8ed4d3beb6
--- a/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs	Tue Oct 13 19:09:46 2009 +0200
+++ b/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs	Tue Oct 13 19:33:13 2009 +0200
@@ -7,11 +7,21 @@
 using System.Windows.Media;
 using System.Windows.Media.Animation;
 using System.Windows.Navigation;
+using FingersDance.Data;
 
 namespace FingersDance.Control.UserPanel
 {
 	public partial class UserControlUserPanel
 	{
+       // public int id = 0;
+        Project _Project = new Project();
+
+        public Project Project
+        {
+            get { return _Project; }
+            set { _Project = value; }
+        }
+
 		public UserControlUserPanel()
 		{
 			this.InitializeComponent();
@@ -19,12 +29,11 @@
 			// Insert code required on object creation below this point.
 		}
 
-        public UserControlUserPanel(string path)
+        public UserControlUserPanel(Project p, string path)
         {
             this.InitializeComponent();
-
+            _Project = p;
             this.UserControlSyncSource.Load(path);
-            // Insert code required on object creation below this point.
         }
 	}
 }
\ No newline at end of file