Mercurial > silverbladetech
changeset 83:30a7e46611c6
removed title in startup
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Tue, 24 Apr 2012 00:50:01 +0100 |
parents | 352ecaa4fcfd |
children | 5cb6117d80b1 |
files | SilverlightGlimpse/SilverlightGlimpse/Services/Glimpse.cs |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/SilverlightGlimpse/SilverlightGlimpse/Services/Glimpse.cs Mon Apr 23 23:20:21 2012 +0100 +++ b/SilverlightGlimpse/SilverlightGlimpse/Services/Glimpse.cs Tue Apr 24 00:50:01 2012 +0100 @@ -20,8 +20,10 @@ private DispatcherTimer _refreshBindingCountTimer; private static readonly TimeSpan FiveSeconds = new TimeSpan(0, 0, 0, 5); private const int MAX_LOG_ITEMS = 9; + private const string SILVERLIGHT_GLIMPSE = "Silverlight Glimpse"; private readonly ILogWriter _logWriter; private readonly IBrokenBindingsService _brokenBindingsService; + #endregion #region Private constructor @@ -68,24 +70,24 @@ // Used when application fails to load a rootpage due to an exception. // Silverlight Glimpse becomes the new rootpage. - public void DisplayLoadFailure(Application app, Exception ex, string title) + public void DisplayLoadFailure(Application app, Exception ex) { var source = ex.StackTrace.Substring(0, ex.StackTrace.IndexOf(Environment.NewLine, StringComparison.Ordinal)); App = app; - App.RootVisual = new LoadExceptionViewer(ex, source); - Title = title; + App.RootVisual = new LoadExceptionViewer(ex, source); + Title = SILVERLIGHT_GLIMPSE; Debug.WriteLine("{0} had exception. {1}", Title, ex); } // Normal loading of Silverlight Glimpse. - public void Load(Application app, string title, TimeSpan bindingsRefreshRate = default(TimeSpan)) + public void Load(Application app, TimeSpan bindingsRefreshRate = default(TimeSpan)) { App = app; RootVisual = App.RootVisual as FrameworkElement; if (RootVisual == null) throw new NullReferenceException("The Application provided did not have a valid RootVisual object"); - Title = title; + Title = SILVERLIGHT_GLIMPSE; BindingsRefreshRate = (bindingsRefreshRate == default(TimeSpan)) ? FiveSeconds : bindingsRefreshRate; RootVisual.BindingValidationError += HostRootVisual_BindingValidationError;