void UpdateOutput() { if (!bar.Install()) { return; } var timestamp = qLogger.GetTimestamp(); if (updateOutputTimeStamp == timestamp) { bar.Remove(); return; } VgcApis.Libs.UI.RunInUiThread(rtboxOutput, () => { // form maybe closed try { repaintCtrl.Disable(); rtboxOutput.Text = qLogger.GetLogAsString(true); VgcApis.Libs.UI.ScrollToBottom(rtboxOutput); repaintCtrl.Enable(); updateOutputTimeStamp = timestamp; } catch { } finally { bar.Remove(); } }); }
void UpdateOutput() { if (!bar.Install()) { return; } var timestamp = qLogger.GetTimestamp(); if (updateOutputTimeStamp == timestamp) { bar.Remove(); return; } VgcApis.Misc.UI.Invoke(() => { rtboxFreezer.DisableRepaintEvent(); rtboxOutput.Text = qLogger.GetLogAsString(true); VgcApis.Misc.UI.ScrollToBottom(rtboxOutput); rtboxFreezer.EnableRepaintEvent(); updateOutputTimeStamp = timestamp; }); bar.Remove(); }
private void RefreshUi() { var timestamp = qLogger.GetTimestamp(); if (updateTimestamp == timestamp) { return; } updateTimestamp = timestamp; VgcApis.Misc.UI.Invoke(UpdateLogBox); }
private void RefreshUi() { var timestamp = qLogger.GetTimestamp(); if (updateTimestamp == timestamp) { return; } updateTimestamp = timestamp; VgcApis.Misc.UI.RunInUiThread(this, UpdateLogBox); }
private void RefreshUi() { var timestamp = qLogger.GetTimestamp(); if (updateTimestamp == timestamp) { return; } updateTimestamp = timestamp; var logs = qLogger.GetLogAsString(true); VgcApis.Misc.UI.UpdateRichTextBox(rtBoxLogger, logs); }
void UpdateOutput() { var timestamp = qLogger.GetTimestamp(); if (updateOutputTimeStamp == timestamp) { return; } var logs = qLogger.GetLogAsString(true); updateOutputTimeStamp = timestamp; VgcApis.Misc.UI.UpdateRichTextBox(rtboxOutput, logs); }