ARCed.Database.Actors.ChartSettingsForm.ButtonDownClick C# (CSharp) Метод

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

private ButtonDownClick ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        private void ButtonDownClick(object sender, EventArgs e)
        {
            int index = this.listBoxColors.SelectedIndex;
            if (index < Editor.Settings.Charting.Colors.Count - 1)
            {
                this.listBoxColors.DataSource = null;
                Color color = Editor.Settings.Charting.Colors[index];
                Editor.Settings.Charting.Colors.RemoveAt(index);
                Editor.Settings.Charting.Colors.Insert(index + 1, color);
                this.RefreshColors();
                this.listBoxColors.SelectedIndex = index + 1;
            }
        }