private void Link(object control, object context, IEnumerable <LinkRule> linkRules, ILinker linker, string controlName, object view) { Type contextType = context?.GetType(); List <LinkData> linkData = new List <LinkData>(); foreach (LinkRule rule in linkRules) { LinkData data = CreateLinkData(controlName, rule, context.GetType(), context, rule.InfoName, null, view); if (data != null) { linkData.Add(data); } } //if no data found to link then return and don't call / add the linker if (linkData.Count == 0) { return; } _linkers.Add(linker); linker.Link(control, linkData, CreateLink); }
public IFlowGraphBuilder Link(BaseLayer outputBaseLayer, BaseLayer entryBaseLayer) { _linker.Link(outputBaseLayer, entryBaseLayer); return(this); }