private void radioButton1_CheckedChanged(object sender, EventArgs e) { if (radioButton1.Checked) { AuthenticationType = SqlAuthenticationType.Sql; } }
private void radioButton2_CheckedChanged(object sender, EventArgs e) { if (radioButton2.Checked) { AuthenticationType = SqlAuthenticationType.Windows; UserNameInput.Enabled = false; PasswordInput.Enabled = false; UserNameInput.BackColor = Color.Gray; PasswordInput.BackColor = Color.Gray; } else { UserNameInput.Enabled = true; PasswordInput.Enabled = true; UserNameInput.BackColor = Color.White; PasswordInput.BackColor = Color.White; } }