Пример #1
0
 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);
     }
 }
Пример #2
0
 private void DisableInputs()
 {
     FormModelBinder.Disable <Button>();
     FormModelBinder.Disable <TextBox>();
     FormModelBinder.Disable <CheckBox>();
 }