Skip to content

Commit

Permalink
Move code into methods region
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed Jan 5, 2020
1 parent 55f2a14 commit 1b79872
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/Lurker.UI/AppBootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ public AppBootstrapper()
this.Initialize();
}

private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
Logger.Error((e.ExceptionObject as Exception).Message);
}

#endregion

#region Methods
Expand Down Expand Up @@ -99,6 +94,16 @@ protected override void OnStartup(object sender, System.Windows.StartupEventArgs
DisplayRootViewFor<ShellViewModel>();
}

/// <summary>
/// Handles the UnhandledException event of the CurrentDomain control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="UnhandledExceptionEventArgs"/> instance containing the event data.</param>
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
Logger.Error((e.ExceptionObject as Exception).Message);
}

#endregion
}
}

0 comments on commit 1b79872

Please sign in to comment.