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