示例#1
0
 /// <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;
     }
 }
示例#2
0
        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());
        }