void ReleaseDesignerOutlets() { if (LoginButton != null) { LoginButton.Dispose(); LoginButton = null; } if (PasswordBox != null) { PasswordBox.Dispose(); PasswordBox = null; } if (UsernameBox != null) { UsernameBox.Dispose(); UsernameBox = null; } }