Exemplo n.º 1
0
 public void RegisterProperty(Snippet property, List<Snippet> selectedSnippets)
 {
     PropertyComboBox box = new PropertyComboBox(property);
     if (selectedSnippets != null)
         box.Edit(selectedSnippets);
     Controls.Add(box);
     this.propertyCombos.Add(box);
     box.MouseDown += new MouseEventHandler(box_MouseDown);
     box.label1.MouseDown += new MouseEventHandler(box_MouseDown);
 }
Exemplo n.º 2
0
 public void DeregisterProperty(PropertyComboBox box)
 {
     Controls.Remove(box);
     this.propertyCombos.Remove(box);
     LayoutProperties();
 }