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 DisableInputs() { FormModelBinder.Disable <Button>(); FormModelBinder.Disable <TextBox>(); FormModelBinder.Disable <CheckBox>(); }