client/src/Iri.Modernisation/MainPage.xaml.cs
changeset 27 f292db96b050
parent 24 c031f1132dde
child 36 b6df6fce6e5d
--- a/client/src/Iri.Modernisation/MainPage.xaml.cs	Tue Dec 22 16:22:22 2009 +0100
+++ b/client/src/Iri.Modernisation/MainPage.xaml.cs	Mon Jan 04 10:29:39 2010 +0100
@@ -25,10 +25,24 @@
         public MainPage()
         {
             Commands.Initialize();
+            FactoryVideoLivre.Initialize();
+           // FactoryVideoLivre.xmlClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(xmlClient_DownloadStringCompleted);
+            FactoryVideoLivre.Load("ProjectConfig.xml");
             InitializeComponent();
-       
-           MainElement.DataContext = new MainVM(new List<VideoBook>());
-           
+
+            MainElement.DataContext = new MainVM(new List<VideoBook>());
+        }
+
+        void xmlClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
+        {
+            if (e.Error == null)
+            {
+               
+            }
+            else
+            {
+                MessageBox.Show(e.Error.InnerException.Message);
+            }
         }