private void Edit() { QueryCriteriaItem item = GetSelectedItem(); if (item == null) { return; } FormQCItem frm = new FormQCItem(item, _qcList); if (frm.ShowDialog(this) != DialogResult.OK) { return; } RefreshList(); SelectItem(item); }
private void Add() { FormQCItem frm = new FormQCItem(null, _qcList); if (frm.ShowDialog(this) != DialogResult.OK) { return; } QueryCriteriaItem item = frm.QCItem; if (item == null) { return; } _qcList.Add(item); RefreshList(); SelectItem(item); }