--- a/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Sun Sep 13 12:23:40 2009 +0200
+++ b/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Mon Sep 14 15:53:57 2009 +0200
@@ -9,6 +9,7 @@
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using System.ComponentModel;
+using System.Reflection;
namespace FingersDance.Control.Player
{
@@ -55,8 +56,10 @@
//init player
isPlaying = false;
//Pour se diriger vers le Dossier ressources du projet et non le bin/ressources
- DirectoryInfo info = Directory.GetParent(@".");
- MediaElementVideo.Source = new Uri(@"" + info.Parent.FullName.ToString() + "\\Resources\\Lake.wmv", UriKind.Relative);
+ //DirectoryInfo info = Directory.GetParent(@".");
+ FileInfo assemblyPath = new FileInfo(Assembly.GetExecutingAssembly().Location);
+ DirectoryInfo info = assemblyPath.Directory;
+ MediaElementVideo.Source = new Uri(@"" + info.FullName.ToString() + "\\Resources\\Lake.wmv", UriKind.Relative);
MediaElementVideo.LoadedBehavior = MediaState.Manual;
MediaElementVideo.UnloadedBehavior = MediaState.Manual;
MediaElementVideo.ScrubbingEnabled= true;