ARCed.Database.States.StateMainForm.CheckedListBoxStatesItemChanged C# (CSharp) Method

CheckedListBoxStatesItemChanged() private method

private CheckedListBoxStatesItemChanged ( object sender, MultiStateCheckEventArgs e ) : void
sender object
e MultiStateCheckEventArgs
return void
        private void CheckedListBoxStatesItemChanged(object sender, MultiStateCheckEventArgs e)
        {
            if (SuppressEvents) return;
            var id = e.Index + 1;
            this._state.plus_state_set.Remove(id);
            this._state.minus_state_set.Remove(id);
            if (e.ValueIndex == 1)
                this._state.plus_state_set.Add(id);
            if (e.ValueIndex == 2)
                this._state.minus_state_set.Add(id);
        }