void UpdateLog() { if (LockReportUpdate) { return; } ReportTextBox.Text = _barbaComm.ReadLog(); ReportTextBox.ScrollToEnd(); }
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.ScrollToEnd(); }