public BlueprintAdapter(DivPanel div) { subject = div; }
public void DeleteDiv(DivPanel div) { // Hide it. div.Hide(); // Delete it from the design board. this.Controls.Remove(div); // Remove it from list. Divs.Remove(div); // Now with no refernces it should get picked up by the GC. }