Mercurial > silverbladetech
comparison SilverlightGlimpse/SilverlightValidation/App.xaml.cs @ 71:96e6fbd70f49
Latest version
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 14:54:24 +0100 |
parents | a0bcd783e612 |
children | dd6bcd2535b6 |
comparison
equal
deleted
inserted
replaced
70:39ba36cc82c5 | 71:96e6fbd70f49 |
---|---|
1 using System; | 1 using System; |
2 using System.Windows; | 2 using System.Windows; |
3 using System.Windows.Controls; | |
4 using System.Windows.Navigation; | |
5 using SilverlightGlimpse.Services; | 3 using SilverlightGlimpse.Services; |
6 using System.Diagnostics; | |
7 | 4 |
8 namespace SilverlightValidation | 5 namespace SilverlightValidation |
9 { | 6 { |
10 public partial class App : Application | 7 public partial class App |
11 { | 8 { |
12 public App() | 9 public App() |
13 { | 10 { |
14 this.Startup += this.Application_Startup; | 11 this.Startup += this.Application_Startup; |
15 this.Exit += this.Application_Exit; | 12 this.Exit += this.Application_Exit; |
18 InitializeComponent(); | 15 InitializeComponent(); |
19 } | 16 } |
20 | 17 |
21 private void Application_Startup(object sender, StartupEventArgs e) | 18 private void Application_Startup(object sender, StartupEventArgs e) |
22 { | 19 { |
23 string appName = "Silverlight Glimpse"; | 20 const string appName = "Silverlight Glimpse"; |
24 try | 21 try |
25 { | 22 { |
26 this.RootVisual = new Views.UserListView(); | 23 this.RootVisual = new Views.UserListView(); |
27 Glimpse.Service.Load(this, appName); | 24 Glimpse.Service.Load(this, appName, new TimeSpan(0,0,0,10)); |
28 } | 25 } |
29 catch (Exception ex) | 26 catch (Exception ex) |
30 { | 27 { |
31 Glimpse.Service.DisplayLoadFailure(this, ex, appName); | 28 Glimpse.Service.DisplayLoadFailure(this, ex, appName); |
32 } | 29 } |