public void NewElement(string nameOfElement, int amount, ElementSpecifications specifications) { elements.Add(new Element(nameOfElement, amount, specifications)); }
public Element(String ElementName, int amount, ElementSpecifications elementspecification) { this.elementspecification = elementspecification; this.ElementName = ElementName; this.amount = amount; }