public void Edit() { using var dialog = new NewHeaderDialog(Module, SelectedItem, this); if (dialog.ShowDialog() != DialogResult.OK) { return; } this.EditItem(dialog.Item); }
public void Add() { using var dialog = new NewHeaderDialog(Module, null, this); if (dialog.ShowDialog() != DialogResult.OK) { return; } this.AddItem(dialog.Item); }