Пример #1
0
        /// <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();
        }
Пример #2
0
 /// <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;
 }
Пример #3
0
 /// <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();
 }