public override IModuleDataModel Clone()
        {
            PositionData newInstance = new PositionData();

            newInstance.ChildrenPositions.AddRange(this.ChildrenPositions);
            return(newInstance);
        }
Beispiel #2
0
        private void buttonOK_Click(object sender, EventArgs e)
        {
            PositionData data = _positionProperty.StaticModuleData as PositionData;

            for (int i = 0; i < _positions.Length; i++)
            {
                ElementNode   child         = _children[i];
                PositionValue childPosition = _positions[i];
                data.ChildrenPositions[child.Id] = childPosition;
            }
        }
 public override IModuleDataModel Clone()
 {
     PositionData newInstance = new PositionData();
     newInstance.ChildrenPositions.AddRange(this.ChildrenPositions);
     return newInstance;
 }