# HG changeset patch # User ymh # Date 1253023785 -7200 # Node ID 1043e7c13ffc8988fb96da930211397e05dbd3bc # Parent d7313fb1806cf544be046e9cd3fc58e1cb7ac1d9 Correct path for menu.iri in the menu control diff -r d7313fb1806c -r 1043e7c13ffc src/FingersDance.Control.Menu/FingersDance.Control.Menu.csproj --- a/src/FingersDance.Control.Menu/FingersDance.Control.Menu.csproj Tue Sep 15 15:40:40 2009 +0200 +++ b/src/FingersDance.Control.Menu/FingersDance.Control.Menu.csproj Tue Sep 15 16:09:45 2009 +0200 @@ -122,7 +122,6 @@ PreserveNewest - diff -r d7313fb1806c -r 1043e7c13ffc src/FingersDance.Control.Menu/FingersDance.Control.Menu.xml --- a/src/FingersDance.Control.Menu/FingersDance.Control.Menu.xml Tue Sep 15 15:40:40 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +0,0 @@ - - - - - - FingersDance.Control.Menu - FingersDance.Control.Menu - FingersDance.Control.Menu.exe - - Resources\icon.png - - Resources\iconPreview.png - - - - - - - - - - - - - \ No newline at end of file diff -r d7313fb1806c -r 1043e7c13ffc src/FingersDance.Control.Menu/UserControlMenu.xaml.cs --- a/src/FingersDance.Control.Menu/UserControlMenu.xaml.cs Tue Sep 15 15:40:40 2009 +0200 +++ b/src/FingersDance.Control.Menu/UserControlMenu.xaml.cs Tue Sep 15 16:09:45 2009 +0200 @@ -10,6 +10,7 @@ using Microsoft.Surface; using Microsoft.Surface.Presentation; using System.Xml.Serialization; +using System.Reflection; namespace FingersDance.Control.Menu { @@ -27,7 +28,16 @@ private void initChildSize() { StreamReader reader = null; - reader = new StreamReader("../../Menu.iri"); + FileInfo assemblyPath = new FileInfo(Assembly.GetExecutingAssembly().Location); + DirectoryInfo info = assemblyPath.Directory; + try + { + reader = new StreamReader(info.FullName.ToString() + "\\Resources\\menu.xml"); + } + catch (Exception e) + { + // do nothing + } XmlSerializer serializer = new XmlSerializer(typeof(Menu)); Menu temp = (Menu)serializer.Deserialize(reader); foreach (Item elt in temp.Items) diff -r d7313fb1806c -r 1043e7c13ffc src/FingersDance/FingersDance.csproj --- a/src/FingersDance/FingersDance.csproj Tue Sep 15 15:40:40 2009 +0200 +++ b/src/FingersDance/FingersDance.csproj Tue Sep 15 16:09:45 2009 +0200 @@ -95,6 +95,9 @@ SettingsSingleFileGenerator Settings.Designer.cs + + Always + True True diff -r d7313fb1806c -r 1043e7c13ffc src/FingersDance/Menu.iri --- a/src/FingersDance/Menu.iri Tue Sep 15 15:40:40 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ - - - - - Annotation - - - Cinematographique - - - MouvCam1 - - MouvCam1 - - - MouvCam2 - - MouvCam2 - - - Cinematographique - - - Camera - - - Axe camera1 - - Axe camera1 - - - Axe camera2 - - Axe camera2 - - - Axe camera3 - - Axe camera3 - - - Axe camera4 - - Axe camera4 - - - Camera - - - Choregraphique - - - ChildChore1 - - ChildChore1 - - - ChildChore2 - - ChildChore2 - - - Choregraphique - - - Annotation - - - ButtonRecherche - - ButtonRecherche - - - \ No newline at end of file diff -r d7313fb1806c -r 1043e7c13ffc src/FingersDance/Resources/menu.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/FingersDance/Resources/menu.xml Tue Sep 15 16:09:45 2009 +0200 @@ -0,0 +1,74 @@ + + + + + Annotation + + + Cinematographique + + + MouvCam1 + + MouvCam1 + + + MouvCam2 + + MouvCam2 + + + Cinematographique + + + Camera + + + Axe camera1 + + Axe camera1 + + + Axe camera2 + + Axe camera2 + + + Axe camera3 + + Axe camera3 + + + Axe camera4 + + Axe camera4 + + + Camera + + + Choregraphique + + + ChildChore1 + + ChildChore1 + + + ChildChore2 + + ChildChore2 + + + Choregraphique + + + Annotation + + + ButtonRecherche + + ButtonRecherche + + + \ No newline at end of file