void UpdateLog(object sender, EventArgs args) { if (isPaused) { return; } if (!bar.Install()) { return; } var timestamp = setting.GetLogTimestamp(); if (updateTimeStamp == timestamp) { bar.Remove(); return; } try { repaintCtrl.DisableRepaintEvent(); rtBoxLogger.Text = setting.GetLogContent(); ScrollToBottom(); updateTimeStamp = timestamp; repaintCtrl.EnableRepaintEvent(); } catch { } finally { bar.Remove(); } }
void UpdateLog() { var timestamp = setting.GetLogTimestamp(); if (updateTimeStamp == timestamp) { return; } updateTimeStamp = timestamp; var text = setting.GetLogContent(); VgcApis.Misc.UI.UpdateRichTextBox(rtBoxLogger, text); }