private void tsbAdd_Click() { if (_metadataFilter != null) { lbInclude.SelectedIndex = lbInclude.Items.Add(_metadataFilter.Add()); EditFilterItem(lbInclude); } }
private void tsbAdd_Click() { if (_metadataFilter == null) { return; } var item = new DataItem { MetadataFilterItem = _metadataFilter.Add(), InvalidTextMessage = _inclompleteItemCaption }; var index = ListBoxInclude.Items.Add(item); ListBoxInclude.SelectedIndex = index; EditFilterItem(ListBoxInclude); }