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);
    }
Esempio n. 2
0
 public ElementStone(programmingElement type, string description = Constants.descriptionDefault)
 {
     this.descriptionText = description;
     this.elem            = type;
     this.InitHintSounds();
 }