ScreenToGif.Modern.SelectFrame C# (CSharp) Method

SelectFrame() private method

Select frame by its System.Int32 index.
/// When index value doesn't match any frame. ///
private SelectFrame ( int index ) : void
index int The value of index
return void
        private void SelectFrame(int index)
        {
            if (index >= 0 && index < _listFramesEdit.Count)
            {
                trackBar.Value = index;
                StopPreview(false);
            }
            else
                throw new IndexOutOfRangeException
                    ("Frame index: " + index + ", is out of range.");
        }
Modern