protected virtual void CreateNewItem() { if (!string.IsNullOrEmpty(EditItemForm)) { DataItemForm form = CreateForm(EditItemForm); if (form != null) { form.Show(); } } else { throw new NotImplementedException("EditItemForm property"); } }
private void EditCurrentItem() { if (SelectedItem != null) { if (!string.IsNullOrEmpty(EditItemForm)) { DataItemForm form = CreateForm(EditItemForm); if (form != null) { form.Item = (DataItem)CreateItemCopy(SelectedItem); form.Show(); } } else { throw new NotImplementedException("EditItemForm property"); } } }