private void CheckAuthentication(object sender, CheckUserAuthenticationCompletedEventArgs e)
        {
            DonorProfile profile = e.Result;
            bool valid = profile != null;

            if (!valid)
                setupControls("Invalid username or password");
            else
            {
                SecurityManager.SetLocalAuthenticationInformation(profile);
                Home_Button_Click(null, null);
            }

            SystemTray.ProgressIndicator.IsIndeterminate = false;
            SystemTray.ProgressIndicator.IsVisible = false;
        }
        private void CheckAuthentication(object sender, CheckUserAuthenticationCompletedEventArgs e)
        {
            DonorProfile profile = e.Result;
            bool         valid   = profile != null;

            if (!valid)
            {
                setupControls("Invalid username or password");
            }
            else
            {
                SecurityManager.SetLocalAuthenticationInformation(profile);
                Home_Button_Click(null, null);
            }


            SystemTray.ProgressIndicator.IsIndeterminate = false;
            SystemTray.ProgressIndicator.IsVisible       = false;
        }