# HG changeset patch # User Steven Hollidge # Date 1335225001 -3600 # Node ID 30a7e46611c69966345b4db7d91bf404bc5b04ca # Parent 352ecaa4fcfdc3d3f2aa112ed7fb88dd45111412 removed title in startup diff -r 352ecaa4fcfd -r 30a7e46611c6 SilverlightGlimpse/SilverlightGlimpse/Services/Glimpse.cs --- 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;