|
0
|
1 |
using System; |
|
|
2 |
using System.Collections.Generic; |
|
|
3 |
using System.Linq; |
|
|
4 |
using System.Net; |
|
|
5 |
using System.Windows; |
|
|
6 |
using System.Windows.Controls; |
|
|
7 |
using System.Windows.Documents; |
|
|
8 |
using System.Windows.Input; |
|
|
9 |
using System.Windows.Media; |
|
|
10 |
using System.Windows.Media.Animation; |
|
|
11 |
using System.Windows.Shapes; |
|
|
12 |
|
|
6
|
13 |
using System.Threading; |
|
|
14 |
using System.Globalization; |
|
|
15 |
|
|
0
|
16 |
using Iri.Modernisation.Controls.ViewModel; |
|
|
17 |
using Iri.Modernisation.BaseMVVM.Commands; |
|
|
18 |
using Iri.Modernisation.Data.LDTClass; |
|
|
19 |
using Iri.Modernisation.Data.Models; |
|
|
20 |
|
|
|
21 |
namespace Iri.Modernisation |
|
|
22 |
{ |
|
|
23 |
public partial class MainPage : UserControl |
|
|
24 |
{ |
|
|
25 |
public MainPage() |
|
|
26 |
{ |
|
6
|
27 |
Commands.Initialize(); |
|
27
|
28 |
FactoryVideoLivre.Initialize(); |
|
|
29 |
// FactoryVideoLivre.xmlClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(xmlClient_DownloadStringCompleted); |
|
|
30 |
FactoryVideoLivre.Load("ProjectConfig.xml"); |
|
0
|
31 |
InitializeComponent(); |
|
27
|
32 |
|
|
|
33 |
MainElement.DataContext = new MainVM(new List<VideoBook>()); |
|
|
34 |
} |
|
|
35 |
|
|
|
36 |
void xmlClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) |
|
|
37 |
{ |
|
|
38 |
if (e.Error == null) |
|
|
39 |
{ |
|
|
40 |
|
|
|
41 |
} |
|
|
42 |
else |
|
|
43 |
{ |
|
|
44 |
MessageBox.Show(e.Error.InnerException.Message); |
|
|
45 |
} |
|
0
|
46 |
} |
|
12
|
47 |
|
|
|
48 |
|
|
0
|
49 |
} |
|
|
50 |
} |