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