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

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

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