void ReleaseDesignerOutlets() { if (LCScrollingTextOutlet != null) { LCScrollingTextOutlet.Dispose(); LCScrollingTextOutlet = null; } if (ConfirmRootPerson != null) { ConfirmRootPerson.Dispose(); ConfirmRootPerson = null; } if (EmailAddressField != null) { EmailAddressField.Dispose(); EmailAddressField = null; } if (LoginButtonOutlet != null) { LoginButtonOutlet.Dispose(); LoginButtonOutlet = null; } if (LostCousinsUpdateButton != null) { LostCousinsUpdateButton.Dispose(); LostCousinsUpdateButton = null; } if (PasswordField != null) { PasswordField.Dispose(); PasswordField = null; } if (StatsTextbox != null) { StatsTextbox.Dispose(); StatsTextbox = null; } if (UpdateResultsTextbox != null) { UpdateResultsTextbox.Dispose(); UpdateResultsTextbox = null; } if (UseKeychainOutlet != null) { UseKeychainOutlet.Dispose(); UseKeychainOutlet = null; } }
public void AppendMessage(string message) { if (!NSThread.IsMain) { InvokeOnMainThread(() => AppendMessage(message)); return; } if (UpdateResultsTextbox.Value == null) { UpdateResultsTextbox.Value = message; } else { UpdateResultsTextbox.Value += message; } NSRange range = new NSRange { Location = UpdateResultsTextbox.Value.Length }; UpdateResultsTextbox.ScrollRangeToVisible(range); }