Example #1
0
        void UpdateLog(object sender, EventArgs args)
        {
            if (!bar.Install())
            {
                return;
            }

            var timestamp = setting.GetLogTimestamp();

            if (updateTimeStamp == timestamp)
            {
                bar.Remove();
                return;
            }

            try
            {
                repaintCtrl.Disable();
                rtBoxLogger.Text = setting.GetLogContent();
                ScrollToBottom();
                updateTimeStamp = timestamp;
                repaintCtrl.Enable();
            }
            catch { }
            finally
            {
                bar.Remove();
            }
        }
Example #2
0
        void UpdateLog()
        {
            var timestamp = setting.GetLogTimestamp();

            if (updateTimeStamp == timestamp)
            {
                return;
            }
            updateTimeStamp = timestamp;
            var text = setting.GetLogContent();

            VgcApis.Misc.UI.UpdateRichTextBox(rtBoxLogger, text);
        }