/// <summary> /// Enable the domain box and populate it if the info is in the global config /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AD_LocalDomainCheckbox_Unchecked(object sender, RoutedEventArgs e) { AD_DomainTextBox.IsEnabled = true; if (!string.IsNullOrEmpty(GlobalConfig.Settings.AD_Domain)) { AD_DomainTextBox.Text = GlobalConfig.Settings.AD_Domain; } else { AD_DomainTextBox.Text = string.Empty; } AD_DomainTextBox.Focus(); }
/// <summary> /// Select all text in the domain box when getting focus /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AD_DomainTextBox_GotFocus(object sender, RoutedEventArgs e) { AD_DomainTextBox.SelectAll(); AD_DomainTextBox.Style = FindResource("TextBox") as Style; }
/// <summary> /// Select all text in the AD Domain box when getting focus /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AD_DomainTextBox_GotFocus(object sender, RoutedEventArgs e) { AD_DomainTextBox.SelectAll(); }