void ReleaseDesignerOutlets() { if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (LoginButton != null) { LoginButton.Dispose(); LoginButton = null; } if (PasswordEntry != null) { PasswordEntry.Dispose(); PasswordEntry = null; } if (PasswordLabel != null) { PasswordLabel.Dispose(); PasswordLabel = null; } if (ServerEntry != null) { ServerEntry.Dispose(); ServerEntry = null; } if (ServerLabel != null) { ServerLabel.Dispose(); ServerLabel = null; } if (UsernameEntry != null) { UsernameEntry.Dispose(); UsernameEntry = null; } if (UsernameLabel != null) { UsernameLabel.Dispose(); UsernameLabel = null; } }