public timelineEvent(int newDelta, IPinData newPinValue) { delta = newDelta; pinValue = newPinValue; }
public timelineEventArgs(IPinData val) { newValue = val; }
public void recreateValue() { // Set the .value of our pin to an object of type according to .valueType. // Call the appropriate constructor, finding it via reflection. // We pass the constructor the parent ruleItemBase, and the parent pin. // Find the constructor ConstructorInfo pinValueTypeConstructor = valueType.GetConstructor(new Type[] { typeof(ruleItems.ruleItemBase), typeof(pin) }); // Call the constructor, storing the new object. value = (IPinData)pinValueTypeConstructor.Invoke(new object[] { parent, this }); }
public timelineEventArgs() { newValue = null; }