# HG changeset patch # User Matthieu Totet # Date 1258721919 -3600 # Node ID cde7fe7f284e848ab672f881c987d174432eb2fc # Parent ee4ddd15fb5d88151656f674cc5f475303a8a4b6 Minor Modification diff -r ee4ddd15fb5d -r cde7fe7f284e client/src/Iri.Modernisation/App.xaml.cs --- a/client/src/Iri.Modernisation/App.xaml.cs Thu Nov 19 17:07:45 2009 +0100 +++ b/client/src/Iri.Modernisation/App.xaml.cs Fri Nov 20 13:58:39 2009 +0100 @@ -11,6 +11,8 @@ using System.Windows.Shapes; using System.Threading; using System.Globalization; +using System.Resources; +using Iri.Modernisation.BaseMVVM.Commands; namespace Iri.Modernisation { public partial class App : Application @@ -21,16 +23,27 @@ this.Startup += this.Application_Startup; this.Exit += this.Application_Exit; this.UnhandledException += this.Application_UnhandledException; + Commands.FlipView.Executed += new EventHandler(FlipView_Executed); + InitializeComponent(); + } - InitializeComponent(); + void FlipView_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) + { + CultureInfo culture = new CultureInfo("en-US"); + Thread.CurrentThread.CurrentCulture = culture; + Thread.CurrentThread.CurrentUICulture = culture; + + this.RootVisual = new MainPage(); } private void Application_Startup(object sender, StartupEventArgs e) { - CultureInfo culture = new CultureInfo("en-US"); - Thread.CurrentThread.CurrentCulture = culture; - Thread.CurrentThread.CurrentUICulture = culture; + //CultureInfo culture = new CultureInfo("en-US"); + //Thread.CurrentThread.CurrentCulture = culture; + //Thread.CurrentThread.CurrentUICulture = culture; + this.RootVisual = new MainPage(); + } private void Application_Exit(object sender, EventArgs e) diff -r ee4ddd15fb5d -r cde7fe7f284e client/src/Iri.Modernisation/MainPage.xaml.cs --- a/client/src/Iri.Modernisation/MainPage.xaml.cs Thu Nov 19 17:07:45 2009 +0100 +++ b/client/src/Iri.Modernisation/MainPage.xaml.cs Fri Nov 20 13:58:39 2009 +0100 @@ -10,6 +10,9 @@ using System.Windows.Media.Animation; using System.Windows.Shapes; +using System.Threading; +using System.Globalization; + using Iri.Modernisation.Controls.ViewModel; using Iri.Modernisation.BaseMVVM.Commands; using Iri.Modernisation.Data.LDTClass; @@ -21,7 +24,7 @@ { public MainPage() { - + Commands.Initialize(); InitializeComponent(); Start(); @@ -30,7 +33,7 @@ { List SelectedVideoBooks = new List(); // Initialisation des commandes // - Commands.Initialize(); + Commands.FlipView.Executed += new EventHandler(FlipView_Executed); //-----------------------------------------// @@ -46,6 +49,9 @@ void FlipView_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) { Commands.VideoViewer.Pause.Execute(); + + + FlipTest.ExecuteFlip(); } } diff -r ee4ddd15fb5d -r cde7fe7f284e client/test/mainInterface/Iri.Modernisation.Test.MainInterface/App.xaml.cs --- a/client/test/mainInterface/Iri.Modernisation.Test.MainInterface/App.xaml.cs Thu Nov 19 17:07:45 2009 +0100 +++ b/client/test/mainInterface/Iri.Modernisation.Test.MainInterface/App.xaml.cs Fri Nov 20 13:58:39 2009 +0100 @@ -17,6 +17,7 @@ public App() { + this.Startup += this.Application_Startup; this.Exit += this.Application_Exit; this.UnhandledException += this.Application_UnhandledException; diff -r ee4ddd15fb5d -r cde7fe7f284e client/test/mainInterface/Iri.Modernisation.Test.MainInterface/Iri.Modernisation.Test.MainInterface.csproj --- a/client/test/mainInterface/Iri.Modernisation.Test.MainInterface/Iri.Modernisation.Test.MainInterface.csproj Thu Nov 19 17:07:45 2009 +0100 +++ b/client/test/mainInterface/Iri.Modernisation.Test.MainInterface/Iri.Modernisation.Test.MainInterface.csproj Fri Nov 20 13:58:39 2009 +0100 @@ -12,8 +12,7 @@ Iri.Modernisation.Test.MainInterface v3.5 true - - + fr-FR;en-US true true Iri.Modernisation.Test.MainInterface.xap