Ejemplo n.º 1
0
 private void EnableControl(bool isEnable)
 {
     foreach (var control in SettingHelp.FindVisualChildren <Button>(this))
     {
         control.IsEnabled = isEnable;
     }
     TxtRoleDisplayName.IsReadOnly = !isEnable;
     TxtRoleName.IsReadOnly        = !isEnable;
     BtnModify.IsEnabled           = true;
     BtnCancel.IsEnabled           = true;
 }
Ejemplo n.º 2
0
 private void EnableControl(bool isEnable)
 {
     TxtUserDisplayName.IsReadOnly = !isEnable;
     TxtUserName.IsReadOnly        = !isEnable;
     foreach (var control in SettingHelp.FindVisualChildren <Button>(this))
     {
         control.IsEnabled = isEnable;
     }
     foreach (var control in SettingHelp.FindVisualChildren <PasswordBox>(this))
     {
         control.IsEnabled = isEnable;
     }
     BtnModify.IsEnabled         = true;
     BtnCancel.IsEnabled         = true;
     BtnModifyPassword.IsEnabled = true;
 }