public void AddScalingStepAtIndex(ScalingStep step, int index) { if (_steps.Contains(step)) { throw new InvalidOperationException("This ScalingInfo already contains this ScaleStep"); } _steps.Insert(index, step); step.SetParent(this); _dirty = true; }
public void RemoveScalingStep(ScalingStep step) { _steps.Remove(step); step.SetParent(null); _dirty = true; }
public void AddScalingStepAtIndex(ScalingStep step, int index) { if (_steps.Contains(step)) throw new InvalidOperationException("This ScalingInfo already contains this ScaleStep"); _steps.Insert(index, step); step.SetParent(this); _dirty = true; }