Exemplo n.º 1
0
 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();
         }
     }
 }
Exemplo n.º 2
0
 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();
             }
         }
     }
 }