private void AddReferenceToDictionary(IActivityComponent activity, ParamOutboundComp paramModel) { this.myDictionary.Add(activity, paramModel); }
private ParamOutboundComp CreateParamComponent (IActivityComponent activity) { ParamOutboundComp component = new ParamOutboundComp(this) { Name = activity.Name, DataContext = activity.DataContext }; component.ParamValueChanged += new ParamOutboundComp.OnParamValueChangedEventHandler(component_ParamValueChanged); AddReferenceToDictionary(activity, component); return component; }