private void SetupCallBacks()

in Editor/Window/UserProfileCreation.cs [113:168]


        private void SetupCallBacks()
        {
            _container.Q<TextField>("UserProfilePageAccountNewProfileNameInput").RegisterValueChangedCallback(_ =>
            {
                ValidateInputs();
            });
            
            var accessKeyInput = _container.Q<TextField>("UserProfilePageAccountNewProfileAccessKeyInput");
            accessKeyInput.RegisterValueChangedCallback(_ =>
            {
                ValidateInputs();
            });
            
            var secretKeyInput = _container.Q<TextField>("UserProfilePageAccountNewProfileSecretKeyInput");
            secretKeyInput.RegisterValueChangedCallback(_ =>
            {
                ValidateInputs();
            });
            
            var accessKeyRevealButton = _container.Q<Button>("UserProfilePageAccountNewProfileAccessKeyToggleReveal");
            accessKeyRevealButton.RegisterCallback<ClickEvent>(_ =>
            {
                ToggleHiddenText(accessKeyRevealButton, accessKeyInput);
            });
            
            var secretKeyRevealButton = _container.Q<Button>("UserProfilePageAccountNewProfileSecretKeyToggleReveal");
            secretKeyRevealButton.RegisterCallback<ClickEvent>(_ =>
            {
                ToggleHiddenText(secretKeyRevealButton, secretKeyInput);
            });
            
            _regionDropDown.RegisterValueChangedCallback(_ =>
            {
                ValidateInputs();
            });

            _createProfileButton.RegisterCallback<ClickEvent>(_ =>
            {
                _credentialsInstructionBox.RemoveFromClassList("hidden");
                var result = CreateUserProfile();
                if (result)
                {
                    OnProfileCreated?.Invoke();
                }
            });

            _credentialsBoxCloseButton.RegisterCallback<ClickEvent>(_ =>
            {
                _credentialsInstructionBox.AddToClassList("hidden");
            });

            _cancelProfileCreateButton.RegisterCallback<ClickEvent>(_ =>
            {
                _credentialsInstructionBox.RemoveFromClassList("hidden");
            });
        }