async partial void LostCousinsUpdateClicked(NSObject sender)
        {
            LostCousinsUpdateButton.Enabled = false;
            if (LCUpdates?.Count > 0)
            {
                UpdateResultsTextbox.Value = string.Empty;
                int response = UIHelpers.ShowYesNo($"You have {LCUpdates.Count} possible records to add to Lost Cousins. Proceed?");
                if (response == UIHelpers.Yes)
                {
                    UpdateResultsTextbox.Value = "Started Processing Lost Cousins entries.\n\n";
                    Progress <string> outputText = new Progress <string>(AppendMessage);
                    int count = await Task.Run(() => ExportToLostCousins.ProcessList(LCUpdates, outputText));

                    string resultText = $"{DateTime.Now.ToUniversalTime().ToString("yyyy-MM-dd HH:mm")}: uploaded {count} records";
                    await Analytics.TrackActionAsync(Analytics.LostCousinsAction, Analytics.UpdateLostCousins, resultText);

                    SpecialMethods.VisitWebsite("https://www.lostcousins.com/pages/members/ancestors/");
                    UpdateLostCousinsReport();
                    LCReport.UpdateLostCousinsReport(ProgressController);
                }
            }
            else
            {
                UIHelpers.ShowMessage("You have no records to add to Lost Cousins at this time. Use the Research Suggestions to find more people on the census, or enter/update missing or incomplete census references.");
            }
            LostCousinsUpdateButton.Enabled = true;
        }
 void ClearLogin()
 {
     if (!LostCousinsUpdateButton.Hidden) // if we can login clear cookies to reset session
     {
         ExportToLostCousins.EmptyCookieJar();
     }
     //LoginButtonOutlet.BezelColor = Color.Red;
     LoginButtonOutlet.Enabled       = true;
     LostCousinsUpdateButton.Enabled = false;
 }
 partial void LoginButtonClicked(NSObject sender)
 {
     if (!string.IsNullOrEmpty(EmailAddressField.StringValue))
     {
         var userDefaults = new NSUserDefaults();
         var email        = EmailAddressField.StringValue;
         userDefaults.SetString(email, "LostCousinsEmail");
         userDefaults.Synchronize();
     }
     WebsiteAvailable = ExportToLostCousins.CheckLostCousinsLogin(EmailAddressField.StringValue, PasswordField.StringValue);
     //LoginButtonOutlet.BezelColor = websiteAvailable ? Color.LightGreen : Color.Red;
     LoginButtonOutlet.Enabled       = !WebsiteAvailable;
     LostCousinsUpdateButton.Enabled = WebsiteAvailable && ConfirmRootPerson.State == NSCellStateValue.On;
     if (WebsiteAvailable)
     {
         UIHelpers.ShowMessage("Lost Cousins login succeeded.");
     }
     else
     {
         UIHelpers.ShowMessage("Unable to login to Lost Cousins website. Check email/password and try again.");
     }
 }