void UpdateLog() { if (LockReportUpdate || WindowState == WindowState.Minimized || !IsVisible) { return; } ReportTextBox.Text = _barbaComm.ReadLog(); ReportTextBox.Select(ReportTextBox.Text.Length, 0); ReportTextBox.ScrollToEnd(); }
void MainWindow_Loaded(object sender, RoutedEventArgs e) { UpdateStatus(); ReportTextBox.Select(ReportTextBox.Text.Length, 0); ReportTextBox.ScrollToEnd(); }