--- 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