void ReleaseDesignerOutlets()
        {
            if (TitleTextField != null)
            {
                TitleTextField.Dispose();
                TitleTextField = null;
            }

            if (UserNameTextField != null)
            {
                UserNameTextField.Dispose();
                UserNameTextField = null;
            }

            if (PasswordSecureTextField != null)
            {
                PasswordSecureTextField.Dispose();
                PasswordSecureTextField = null;
            }

            if (PasswordClearTextField != null)
            {
                PasswordClearTextField.Dispose();
                PasswordClearTextField = null;
            }

            if (UrlTextField != null)
            {
                UrlTextField.Dispose();
                UrlTextField = null;
            }

            if (NotesTextField != null)
            {
                NotesTextField.Dispose();
                NotesTextField = null;
            }

            if (ExpireCheckBox != null)
            {
                ExpireCheckBox.Dispose();
                ExpireCheckBox = null;
            }

            if (ExpireTimeDatePicker != null)
            {
                ExpireTimeDatePicker.Dispose();
                ExpireTimeDatePicker = null;
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (UsernameTextField != null)
            {
                UsernameTextField.Dispose();
                UsernameTextField = null;
            }

            if (PasswordSecureTextField != null)
            {
                PasswordSecureTextField.Dispose();
                PasswordSecureTextField = null;
            }

            if (LoginButton != null)
            {
                LoginButton.Dispose();
                LoginButton = null;
            }
        }