client/src/Iri.Modernisation/MainPage.xaml.cs
author Matthieu Totet
Mon, 04 Jan 2010 10:29:39 +0100
changeset 27 f292db96b050
parent 24 c031f1132dde
child 36 b6df6fce6e5d
permissions -rw-r--r--
Generalization of Book Structure

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
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;
using Iri.Modernisation.Data.Models;

namespace Iri.Modernisation
{
    public partial class MainPage : UserControl
    {
        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>());
        }

        void xmlClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
        {
            if (e.Error == null)
            {
               
            }
            else
            {
                MessageBox.Show(e.Error.InnerException.Message);
            }
        }
   
    
    }
}