ARCed.Database.Items.ItemMainForm.CheckedListBoxStatesOnItemChanged C# (CSharp) Метод

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

private CheckedListBoxStatesOnItemChanged ( object sender, MultiStateCheckEventArgs e ) : void
sender object
e MultiStateCheckEventArgs
Результат void
        private void CheckedListBoxStatesOnItemChanged(object sender, MultiStateCheckEventArgs e)
        {
            if (SuppressEvents) return;
            var id = e.Index + 1;
            this._item.plus_state_set.Remove(id);
            this._item.minus_state_set.Remove(id);
            if (e.ValueIndex == 1)
                this._item.plus_state_set.Add(id);
            if (e.ValueIndex == 2)
                this._item.minus_state_set.Add(id);
        }