Beispiel #1
0
        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();
                }
            });
        }
Beispiel #2
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();
        }
        private void RefreshUi()
        {
            var timestamp = qLogger.GetTimestamp();

            if (updateTimestamp == timestamp)
            {
                return;
            }

            updateTimestamp = timestamp;
            VgcApis.Misc.UI.Invoke(UpdateLogBox);
        }
Beispiel #4
0
        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);
        }
Beispiel #6
0
        void UpdateOutput()
        {
            var timestamp = qLogger.GetTimestamp();

            if (updateOutputTimeStamp == timestamp)
            {
                return;
            }

            var logs = qLogger.GetLogAsString(true);

            updateOutputTimeStamp = timestamp;

            VgcApis.Misc.UI.UpdateRichTextBox(rtboxOutput, logs);
        }