/// <summary> /// Mark modified key. /// </summary> private void MarkModify(EditCurveKey key) { // Clone and save current EditCurveKey to modified keys. if (modifiedKeys != null && !modifiedKeys.ContainsKey(key.Id)) { modifiedKeys.Add(key.Id, key.Clone()); dirty = true; } }
public EditCurveKeyAddRemoveCommand(EditCurve curve, EditCurveKey addKey, EditCurveKeySelection selection) { this.curve = curve; this.addKey = true; this.selection = selection.Clone(); keys = new List <EditCurveKey>(); keys.Add(addKey.Clone()); }