private void newConditionButton_Click(object sender, EventArgs e) { var newForm = new AddNewConditionForm(); if (newForm.ShowDialog() != DialogResult.OK) return; var conditionItem = new ListViewItem(newForm.ItemCondition.ToString()) {Tag = newForm.ItemCondition}; conditionsListView.Items.Add(conditionItem); }
private void newConditionButton_Click(object sender, EventArgs e) { var newForm = new AddNewConditionForm(); if (newForm.ShowDialog() != DialogResult.OK) { return; } var conditionItem = new ListViewItem(newForm.ItemCondition.ToString()) { Tag = newForm.ItemCondition }; conditionsListView.Items.Add(conditionItem); }