private void sBtnOk_Click(object sender, EventArgs e) { //todo check casting GlobalExclusion = checkedListBox1.CheckedItems.Cast <AnalogyCheckListItem>().Select(i => FilterCriteriaObject.EscapeLikeValue(i.Text)).ToList(); DialogResult = DialogResult.OK; Close(); }
private void sBtnOk_Click(object sender, EventArgs e) { Exclude = FilterCriteriaObject.EscapeLikeValue(txtbMessage.Text); DialogResult = DialogResult.OK; Close(); }
private void sBtnOk_Click(object sender, EventArgs e) { GlobalExclusion = checkedListBoxControl1.CheckedItems.Cast <DevExpress.XtraEditors.Controls.CheckedListBoxItem>().Select(i => FilterCriteriaObject.EscapeLikeValue((i.Value as AnalogyCheckListItem)?.Text)).ToList(); DialogResult = DialogResult.OK; Close(); }