private void useForAllButton_Click(object sender, EventArgs e) { MObjectDescriptor mObject = new MObjectDescriptor(mObjectList[currentNumber - 1]); for (int mcount = 0; mcount < mObjectList.Count; mcount++) { if (mcount != (currentNumber - 1)) { mObjectList[mcount] = new MObjectDescriptor(mObject); } } }
public MObjectDescriptor(MObjectDescriptor mObject) { this.maxSpeedHorizontal = mObject.maxSpeedHorizontal; this.minSpeedHorizontal = mObject.minSpeedHorizontal; this.maxSpeedVertical = mObject.maxSpeedVertical; this.minSpeedVertical = mObject.minSpeedVertical; this.color = mObject.color; this.filename = mObject.filename; this.height = mObject.height; this.startPanel = mObject.startPanel; this.targetObject = mObject.targetObject; this.type = mObject.type; this.width = mObject.width; }