Esempio n. 1
0
        protected override void UpdateAfter()
        {
            if (!IsHandleCreated || IsDisposed || CurrentTasMovie == null)
            {
                return;
            }

            if (_hackyDontUpdate)
            {
                return;
            }

            if (_exiting)
            {
                return;
            }

            var refreshNeeded = false;

            if (AutoadjustInputMenuItem.Checked)
            {
                refreshNeeded = AutoAdjustInput();
            }

            CurrentTasMovie.TasSession.UpdateValues(Emulator.Frame, CurrentTasMovie.Branches.Current);
            MaybeFollowCursor();

            if (TasView.IsPartiallyVisible(Emulator.Frame) || TasView.IsPartiallyVisible(_lastRefresh))
            {
                refreshNeeded = true;
            }

            RefreshDialog(refreshNeeded, refreshBranches: false);
        }
Esempio n. 2
0
        public void UpdateValues()
        {
            if (!IsHandleCreated || IsDisposed || CurrentTasMovie == null)
            {
                return;
            }

            if (_hackyDontUpdate)
            {
                return;
            }

            bool refreshNeeded = false;

            if (AutoadjustInputMenuItem.Checked)
            {
                refreshNeeded = AutoAdjustInput();
            }

            if (TasView.RowCount != CurrentTasMovie.InputLogLength + 1)
            {
                TasView.RowCount = CurrentTasMovie.InputLogLength + 1;
            }

            MaybeFollowCursor();

            if (TasView.IsPartiallyVisible(Global.Emulator.Frame) || TasView.IsPartiallyVisible(lastRefresh))
            {
                refreshNeeded = true;
            }

            RefreshDialog(refreshNeeded);
        }
Esempio n. 3
0
        public void UpdateValues()
        {
            if (!IsHandleCreated || IsDisposed || CurrentTasMovie == null)
            {
                return;
            }

            if (_hackyDontUpdate)
            {
                return;
            }

            if (_exiting)
            {
                return;
            }

            bool refreshNeeded = false;

            if (AutoadjustInputMenuItem.Checked)
            {
                refreshNeeded = AutoAdjustInput();
            }

            MaybeFollowCursor();

            if (TasView.IsPartiallyVisible(Emulator.Frame) || TasView.IsPartiallyVisible(_lastRefresh))
            {
                refreshNeeded = true;
            }

            RefreshDialog(refreshNeeded, refreshBranches: false);
        }
        public void UpdateValues()
        {
            if (!IsHandleCreated || IsDisposed || CurrentTasMovie == null)
            {
                return;
            }

            if (_hackyDontUpdate)
            {
                return;
            }

            bool refreshNeeded = false;

            if (AutoadjustInputMenuItem.Checked)
            {
                refreshNeeded = AutoAdjustInput();
            }

            if (TasPlaybackBox.FollowCursor)
            {
                SetVisibleIndex();
            }

            if (TasView.IsPartiallyVisible(Global.Emulator.Frame) || TasView.IsPartiallyVisible(lastRefresh))
            {
                refreshNeeded = true;
            }

            if (refreshNeeded)
            {
                RefreshDialog();
            }
            else if (TasView.RowCount != CurrentTasMovie.InputLogLength + 1)             // Perhaps not the best place to put this.
            {
                TasView.RowCount = CurrentTasMovie.InputLogLength + 1;
            }
        }