Esempio n. 1
0
        /// <summary>
        /// Displays a work progress message in the status textbox.
        /// Right now this only displays items that have failed validation. Mostly
        /// this is there to show that the application is working and isn't stalled out.
        /// </summary>
        /// <param name="message"></param>
        void AppendStatusMessage(string message)
        {
            if (message == null || message == "")
            {
                return;
            }

            // Add results to the data grid as soon as they are available
            StatusTextBox.Text += Environment.NewLine + Environment.NewLine;
            StatusTextBox.Text += message;
            StatusTextBox.Focus();
            StatusTextBox.CaretIndex = StatusTextBox.Text.Length;
            StatusTextBox.ScrollToEnd();
        }
 void StatusUpdateControl_OnLoaded(object sender, RoutedEventArgs e)
 {
     StatusTextBox.SelectionStart = StatusTextBox.Text.Length;
     StatusTextBox.Focus();
 }