Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 void UpdateLogBox()
 {
     repaintCtrl.DisableRepaintEvent();
     rtBoxLogger.Text           = qLogger.GetLogAsString(true);
     rtBoxLogger.SelectionStart = rtBoxLogger.Text.Length;
     rtBoxLogger.ScrollToCaret();
     repaintCtrl.EnableRepaintEvent();
 }