comparison SilverlightGlimpse/SilverlightGlimpse.Test/App.xaml.cs @ 69:a0bcd783e612

Latest work
author Steven Hollidge <stevenhollidge@hotmail.com>
date Mon, 23 Apr 2012 11:06:10 +0100
parents b0e369f1e948
children
comparison
equal deleted inserted replaced
68:81337ebf885a 69:a0bcd783e612
1 using System; 1 using System;
2 using System.Windows; 2 using System.Windows;
3 using SilverlightGlimpse.Services; 3 using SilverlightGlimpse.Services;
4 //using Glimpse;
5 using System.Reflection;
6 4
7 namespace SilverlightGlimpse.Test 5 namespace SilverlightGlimpse.Test
8 { 6 {
9 public partial class App : Application 7 public partial class App : Application
10 { 8 {
17 InitializeComponent(); 15 InitializeComponent();
18 } 16 }
19 17
20 private void Application_Startup(object sender, StartupEventArgs e) 18 private void Application_Startup(object sender, StartupEventArgs e)
21 { 19 {
20 var appName = "Silverlight Glimpse";
22 try 21 try
23 { 22 {
24 RootVisual = new MainPage(); 23 RootVisual = new MainPage();
25 GlimpseService.CreateInstance.Load(this, "Silverlight Glimpse"); 24 Glimpse.Service.Load(this, appName);
26 } 25 }
27 catch (Exception ex) 26 catch (Exception ex)
28 { 27 {
29 GlimpseService.CreateInstance.DisplayLoadFailure(this, ex); 28 Glimpse.Service.DisplayLoadFailure(this, ex, appName);
30 } 29 }
31 } 30 }
32 31
33 private void Application_Exit(object sender, EventArgs e) 32 private void Application_Exit(object sender, EventArgs e)
34 { 33 {