diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Data/Models/SettingsProject.cs
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/Iri.Modernisation.Data/Models/SettingsProject.cs Thu Jan 14 16:39:50 2010 +0100
@@ -0,0 +1,67 @@
+using System;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+using System.Collections.Generic;
+using System.Threading;
+namespace Iri.Modernisation.Data.Models
+{
+ ///
+ ///
+ ///
+ public static class SettingsProject
+ {
+ ///
+ /// Liste des vidéoLivre Disponible
+ ///
+ static public List ListVideoBook { get; set; }
+
+ static SettingsProject()
+ {
+ }
+ ///
+ /// (Télé)Chargement des données;
+ ///
+ ///
+ static public void Load(String configFileURI)
+ {
+ FactoryVideoLivre.Initialize();
+ FactoryVideoLivre.FactoryReady += new EventHandler(FactoryVideoLivre_FactoryReady);
+ FactoryVideoLivre.LoadXMLFile(configFileURI);
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ static void FactoryVideoLivre_FactoryReady(object sender, EventArgs e)
+ {
+ /*Loader> LoaderVideoBook = new Loader>(VideoBook.LoadFromXml);
+ LoaderVideoBook.LoadAvailableVideoBooks("/Content/AvailableVideoBooks.xml");
+ LoaderVideoBook.LoaderFinished += new EventHandler>>(LoaderVideoBook_LoaderFinished);*/
+ VideoBookLoaderHelper LoaderVideoBook = new VideoBookLoaderHelper("/Content/AvailableVideoBooks.xml");
+ LoaderVideoBook.LoaderFinished += new EventHandler>>(LoaderVideoBook_LoaderFinished);
+
+ }
+
+
+
+ static void LoaderVideoBook_LoaderFinished(object sender, LoaderEventArgs> e)
+ {
+ SettingsProject.ListVideoBook = e.CreatedObject;
+ if (SettingsLoaded != null)
+ SettingsLoaded(sender, e);
+ }
+ ///
+ /// Evenement prévenant quand tout est pret
+ ///
+ static public event EventHandler SettingsLoaded;
+ }
+}