|
/*-------------------------------Developed by Manoj Kumar-------------------------------*/
namespace BusinessAppMVVM
{
using System.Windows.Controls;
using System.Windows.Navigation;
using System.ServiceModel;
using System;
using System.Windows;
using BusinessAppMVVM.Helpers;
/// <summary>
/// Home page for the application.
/// </summary>
public partial class Home : Page
{
/// <summary>
/// Creates a new <see cref="Home"/> instance.
/// </summary>
public Home()
{
InitializeComponent();
this.Title = ApplicationStrings.HomePageTitle;
}
/// <summary>
/// Executes when the user navigates to this page.
/// </summary>
protected override void OnNavigatedTo(NavigationEventArgs e)
{
}
private void button1_Click(object sender, System.Windows.RoutedEventArgs e)
{
try
{
//Manually generating error to test error logging
throw new Exception();
}
catch (Exception ex)
{
LoggerManager.WriteLog(LogType.ERROR.ToString(), ex.ToString());
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.