src/FingersDance/MainSurfaceWindow.xaml.cs
changeset 119 7a370bfb4d77
parent 112 08bc8eac9e71
child 131 9331c3dea175
child 143 9f157d9c725b
--- a/src/FingersDance/MainSurfaceWindow.xaml.cs	Thu Sep 24 18:13:36 2009 +0200
+++ b/src/FingersDance/MainSurfaceWindow.xaml.cs	Thu Sep 24 18:30:56 2009 +0200
@@ -298,25 +298,25 @@
                 switch (((UserControlScreen)sender).id)
                 {
                     case 1:
-                        Panel1 = new UserControlUserPanel();
+                        Panel1 = new UserControlUserPanel(((UserControlScreen)sender).Path);
                         Panel1.Name = "UserPanel1";
                         //3-Rajout sur la Grid Root
                         root.Children.Add(Panel1);
                         break;
                     case 2:
-                        Panel2 = new UserControlUserPanel();
+                        Panel2 = new UserControlUserPanel(((UserControlScreen)sender).Path);
                         Panel2.Name = "UserPanel2";
                         //3-Rajout sur la Grid Root
                         root.Children.Add(Panel2);
                         break;
                     case 3:
-                        Panel3 = new UserControlUserPanel();
+                        Panel3 = new UserControlUserPanel(((UserControlScreen)sender).Path);
                         Panel3.Name = "UserPanel3";
                         //3-Rajout sur la Grid Root
                         root.Children.Add(Panel3);
                         break;
                     case 4:
-                        Panel4 = new UserControlUserPanel();
+                        Panel4 = new UserControlUserPanel(((UserControlScreen)sender).Path);
                         Panel4.Name = "UserPanel4";
                         //3-Rajout sur la Grid Root
                         root.Children.Add(Panel4);