private void addPropertyToolStripMenuItem_Click(object sender, EventArgs e) { using (EditConfigPropertyForm frm = new EditConfigPropertyForm()) { if (frm.ShowDialog(this) == DialogResult.OK) { DynamicNodeConfigProperty p = frm.Property; _properties[p.Name] = p; RefreshList(); } } }
private void editPropertyToolStripMenuItem_Click(object sender, EventArgs e) { if (listViewConfig.SelectedItems.Count > 0) { using (EditConfigPropertyForm frm = new EditConfigPropertyForm()) { frm.Property = (DynamicNodeConfigProperty)listViewConfig.SelectedItems[0].Tag; if (frm.ShowDialog(this) == DialogResult.OK) { DynamicNodeConfigProperty p = frm.Property; _properties[p.Name] = p; RefreshList(); } } } }