private void SwapEffectData() { List<Element> keys = new List<Element>(_changedElements.Keys); foreach (var element in keys) { EffectModelCandidate modelCandidate = new EffectModelCandidate(element.EffectNode.Effect) { Duration = element.Duration, StartTime = element.StartTime }; IModuleDataModel model = _changedElements[element].GetEffectData(); element.EffectNode.Effect.ModuleData = model; _changedElements[element] = modelCandidate; element.UpdateNotifyContentChanged(); } }
private void SwapEffectData() { List <Element> keys = new List <Element>(_changedElements.Keys); foreach (var element in keys) { EffectModelCandidate modelCandidate = new EffectModelCandidate(element.EffectNode.Effect) { Duration = element.Duration, StartTime = element.StartTime }; IModuleDataModel model = _changedElements[element].GetEffectData(); element.EffectNode.Effect.ModuleData = model; _changedElements[element] = modelCandidate; element.UpdateNotifyContentChanged(); } }