public ElementCtrl(Element e, TabPage tabpage) { InitializeComponent(); Parent = tabpage; element = e; LoadElement(); }
public ElementCtrl(TabPage tabpage) { InitializeComponent(); element = new Element(); element.Type = "New Element"; Parent = tabpage; LoadElement(); }
private Element newElement() { Element temp = new Element(e_id++); ElementDict.Add(temp.GetID(), temp); return temp; }
public Element NewElement() { Element temp = new Element(); //Elements.Add(e_id++, temp); Elements.Add(temp); return temp; }