public ElementStone createElementStone(string type) { programmingElement elem = getProgrammingElementByString(type); ElementStone es; if (elem == programmingElement.elemVar) { es = new VariableStone(); } else if (elem == programmingElement.elemInterval) { es = new IntervalStone(); } else { es = new ElementStone(elem); } return(es); }
public ElementStone(programmingElement type, string description = Constants.descriptionDefault) { this.descriptionText = description; this.elem = type; this.InitHintSounds(); }