ARCed.Database.Animations.AnimationMainForm.RefreshFrameList C# (CSharp) Метод

RefreshFrameList() приватный Метод

private RefreshFrameList ( ) : void
Результат void
        private void RefreshFrameList()
        {
            int index = this.listBoxFrames.SelectedIndex;
            this.listBoxFrames.BeginUpdate();
            this.listBoxFrames.Items.Clear();
            for (int i = 0; i < this._animation.frames.Count; i++)
                this.listBoxFrames.Items.Add(String.Format("#{0:d3}", i + 1));
            this.listBoxFrames.SelectedIndex = index.Clamp(0, this.listBoxFrames.Items.Count - 1);
            this.listBoxFrames.EndUpdate();
        }