src/FingersDance.Control.Menu/UserControlMenu.xaml.cs
changeset 214 beebae32b1ed
parent 211 50e6fe2c2ea2
--- a/src/FingersDance.Control.Menu/UserControlMenu.xaml.cs	Thu Nov 19 15:35:46 2009 +0100
+++ b/src/FingersDance.Control.Menu/UserControlMenu.xaml.cs	Thu Nov 19 18:37:26 2009 +0100
@@ -116,17 +116,11 @@
              // Generate action
              // We get the instance of the user panel
              UserControl userPanel = (UserControl)((Grid)((Grid)this.Parent).Parent).Parent;
-             // Its content...
-             Grid o = (Grid)userPanel.Content;
-             // and the UserControlSyncSource within the grid...
-             UserControlSyncSource syncSrc = (UserControlSyncSource)((Grid)o.Children[1]).Children[0];
-             // and finally the timeline
-             UserControlTimeLine tl = syncSrc.userControlTimeLine;
 
              String actionId = ((CustomSurfaceButton)sender).Action;
              ActionGenerator ag = new ActionGenerator();
              Object[] ar = new Object[2];
-             ar[0] = tl;
+             ar[0] = userPanel;
              ar[1] = (String)((CustomSurfaceButton)sender).Content;
              ActionBase ab = ag.GetAction(actionId, ar);
              if(ab!=null)