client/src/Iri.Modernisation/MainPage.xaml.cs
author totetm <>
Wed, 27 Jan 2010 10:37:39 +0100
changeset 36 b6df6fce6e5d
parent 27 f292db96b050
permissions -rw-r--r--
Sync init XML download. ProductionVideo from URI source

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();
        }

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