public void IntegratedSecurityOnCheckedChanged(object sender, EventArgs e) { IntegratedSecurity = ((CheckBox)sender).CheckState; if (IntegratedSecurity == CheckState.Checked) { FormModelBinder.Disable(Form.TextBoxUserName); FormModelBinder.Disable(Form.TextBoxPassword); } else if (IntegratedSecurity == CheckState.Unchecked) { FormModelBinder.Enable(Form.TextBoxUserName); FormModelBinder.Enable(Form.TextBoxPassword); } }
private void EnableInputs() { FormModelBinder.Enable <Button>(); FormModelBinder.Enable <TextBox>(); FormModelBinder.Enable <CheckBox>(); }