Пример #1
0
        void UpdateLog()
        {
            if (LockReportUpdate || WindowState == WindowState.Minimized || !IsVisible)
            {
                return;
            }

            ReportTextBox.Text = _barbaComm.ReadLog();
            ReportTextBox.Select(ReportTextBox.Text.Length, 0);
            ReportTextBox.ScrollToEnd();
        }
Пример #2
0
 void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     UpdateStatus();
     ReportTextBox.Select(ReportTextBox.Text.Length, 0);
     ReportTextBox.ScrollToEnd();
 }