public override void makeClonned(int maxKnot, string cloneValue) { string max1 = maxKnot.ToString(); string max2 = (maxKnot + 1).ToString(); string[] clonnedKnots = { max1, knots[1], max2, knots[3] }; string[] cloneKnots = { knots[0], max1, knots[2], max2 }; HI clonned = new HI(name + clonnedSuffix, clonnedKnots, value); HI clone = new HI(name, cloneKnots, cloneValue); cloneElement = clone; clonnedElements = new List <Element>() { clonned, clone }; }
public override void makeClonned(int maxKnot, string cloneValue) { string max1 = maxKnot.ToString(); string max2 = (maxKnot + 1).ToString(); string[] clonnedKnots = { max1, knots[1], max2, knots[3] }; string[] cloneKnots = { knots[0], max1, knots[2], max2 }; HI clonned = new HI(name + clonnedSuffix, clonnedKnots, value); HI clone = new HI(name, cloneKnots, cloneValue); cloneElement = clone; clonnedElements = new List<Element>() { clonned, clone }; }
public HI(HI element) : base(element) { }