public void Remove(object value) { if (_owner is not null) { ObjectCollection items = _owner.Items; if (items is not null && value is not null) { int index = items.IndexOf(value); if (index != -1 && GetSelected(index)) { _owner.SetSelected(index, false); } } } }
public void Remove(object value) { if (owner != null) { ObjectCollection items = owner.Items; if (items != null & value != null) { int index = items.IndexOf(value); if (index != -1 && GetSelected(index)) { owner.SetSelected(index, false); } } } }
public void Add(object value) { if (_owner is not null) { ObjectCollection items = _owner.Items; if (items is not null && value is not null) { int index = items.IndexOf(value); if (index != -1 && !GetSelected(index)) { _owner.SelectedIndex = index; } } } }
public void Add(object value) { if (owner != null) { ObjectCollection items = owner.Items; if (items != null && value != null) { int index = items.IndexOf(value); if (index != -1 && !GetSelected(index)) { owner.SelectedIndex = index; } } } }