mainul098
9/29/2016 - 6:44 AM

MainWindow_Sync.cs

// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MainWindow.xaml.cs" company="Mainul Islam">
//   Copyright @ 2016
// </copyright>
// <summary>
//   Interaction logic for MainWindow.xaml
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace MyAwesomeApplication
{
    using System.Threading;
    using System.Windows;

    /// <summary>
    ///     Interaction logic for MainWindow
    /// </summary>
    public partial class MainWindow : Window
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindow"/> class.
        /// </summary>
        public MainWindow()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// The login button click.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void OnLoginButtonClick(object sender, RoutedEventArgs e)
        {
            // Add login logic here

            // This is added to simulate a WebService which will perform the Login and return the authentication request
            Thread.Sleep(3000); 
        }
    }
}