DataHubServicesAddin.Dialogs.ConfigureLocatorForm.securityOption_CheckedChanged C# (CSharp) Method

securityOption_CheckedChanged() private method

Handles the CheckedChanged event of the securityOption control.
private securityOption_CheckedChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void
        private void securityOption_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                bool tokenService = radAuthToken.Checked;

                bool usernamePasswordNeeded = !radAuthNone.Checked;
                txtPassword.Enabled = usernamePasswordNeeded;
                txtUsername.Enabled = usernamePasswordNeeded;

                chkUseCurrentCredntials.Enabled = radAuthWindows.Checked;

                InvalidateWebService();
                ConfigureUI();
            }
            catch (Exception)
            {

            }
        }