--- 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<SLExtensions.Input.ExecutedEventArgs>(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)
--- 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<VideoBook> SelectedVideoBooks = new List<VideoBook>();
// Initialisation des commandes //
- Commands.Initialize();
+
Commands.FlipView.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(FlipView_Executed);
//-----------------------------------------//
@@ -46,6 +49,9 @@
void FlipView_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
{
Commands.VideoViewer.Pause.Execute();
+
+
+
FlipTest.ExecuteFlip();
}
}
--- 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;
--- 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 @@
<AssemblyName>Iri.Modernisation.Test.MainInterface</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<SilverlightApplication>true</SilverlightApplication>
- <SupportedCultures>
- </SupportedCultures>
+ <SupportedCultures>fr-FR;en-US</SupportedCultures>
<XapOutputs>true</XapOutputs>
<GenerateSilverlightManifest>true</GenerateSilverlightManifest>
<XapFilename>Iri.Modernisation.Test.MainInterface.xap</XapFilename>