Exemple #1
0
        private void EffectPropertyEditorValueChanged(object sender, PropertyValueChangedEventArgs e)
        {
            Dictionary <Element, Tuple <Object, PropertyDescriptor> > elementValues = new Dictionary <Element, Tuple <object, PropertyDescriptor> >();

            int i = 0;

            foreach (var element in _elements)
            {
                element.UpdateNotifyContentChanged();
                elementValues.Add(element, new Tuple <object, PropertyDescriptor>(e.OldValue[i], e.Property.UnderLyingPropertyDescriptor(i)));
                i++;
            }

            var undo = new EffectsPropertyModifiedUndoAction(elementValues);

            _sequenceEditorForm.AddEffectsModifiedToUndo(undo);
        }
Exemple #2
0
		private void EffectPropertyEditorValueChanged(object sender, PropertyValueChangedEventArgs e)
		{
			Dictionary<Element, Tuple<Object, PropertyDescriptor>> elementValues = new Dictionary<Element, Tuple<object, PropertyDescriptor>>();

			int i = 0;
			foreach (var element in _elements)
			{
				element.UpdateNotifyContentChanged();
				elementValues.Add(element, new Tuple<object, PropertyDescriptor>(e.OldValue[i], e.Property.UnderLyingPropertyDescriptor(i)));
				i++;
			}

			var undo = new EffectsPropertyModifiedUndoAction(elementValues);
			_sequenceEditorForm.AddEffectsModifiedToUndo(undo);
		}