ScreenToGif.Modern.StopPreview C# (CSharp) Method

StopPreview() private method

Stops the preview
private StopPreview ( bool shouldSincronize = true ) : void
shouldSincronize bool True if should update the value of the trackBar
return void
        private void StopPreview(bool shouldSincronize = true)
        {
            if (_timerPlayPreview.Enabled)
            {
                _timerPlayPreview.Tick -= timerPlayPreview_Tick;
                _timerPlayPreview.Stop();

                if (shouldSincronize)
                {
                    trackBar.Value = _actualFrame;
                }
            }

            this.Text = Resources.Title_EditorFrame + trackBar.Value + " - " + (_listFramesEdit.Count - 1);
            lblDelay.Visible = true;
            trackBar.Visible = true;
            btnPreview.Text = Resources.Con_PlayPreview;
            btnPreview.Image = Resources.Play_17Green;

            DelayUpdate();
        }
Modern