private void FillNavTargets(InteractionPointInfoWrapper iPointInfWrapper, InteractionPointInfoCollection iPointInfos) { foreach (XmlElement navTargetElmt in iPointInfWrapper.iPointElmt.SelectNodes("navTarget")) { string triggerName = navTargetElmt.GetAttribute("trigger"); InteractionPointInfo target = iPointInfos[navTargetElmt.GetAttribute("view")]; if (triggerName == string.Empty) triggerName = target.ViewName; iPointInfWrapper.iPointInf.NavTargets[triggerName] = target; } string quotedViewName = "\"" + iPointInfWrapper.iPointInf.ViewName + "\""; XmlNodeList adjacentPointElmts = iPointInfWrapper.iPointElmt.SelectNodes( "/*/adjacentPoints[iPointRef/@view | interactionPointRef/@view = " + quotedViewName + "]/*[self::iPointRef or self::interactionPointRef][@view!=" + quotedViewName + "]"); foreach (XmlElement adjacentPointElmt in adjacentPointElmts) { string targetViewName = adjacentPointElmt.GetAttribute("view"); if ( (iPointInfWrapper.iPointInf.NavTargets[targetViewName] != null) && (iPointInfWrapper.iPointInf.NavTargets[targetViewName].ViewName == targetViewName)) continue; InteractionPointInfo target = iPointInfos[targetViewName]; string triggerName = target.ViewName; iPointInfWrapper.iPointInf.NavTargets[targetViewName] = target; } }
private void FillNavTargets(InteractionPointInfoWrapper iPointInfWrapper, InteractionPointInfoCollection iPointInfos) { foreach (XmlElement navTargetElmt in iPointInfWrapper.iPointElmt.SelectNodes("navTarget")) { string triggerName = navTargetElmt.GetAttribute("trigger"); InteractionPointInfo target = iPointInfos[navTargetElmt.GetAttribute("view")]; if (triggerName == string.Empty) { triggerName = target.ViewName; } iPointInfWrapper.iPointInf.NavTargets[triggerName] = target; } string quotedViewName = "\"" + iPointInfWrapper.iPointInf.ViewName + "\""; XmlNodeList adjacentPointElmts = iPointInfWrapper.iPointElmt.SelectNodes( "/*/adjacentPoints[iPointRef/@view | interactionPointRef/@view = " + quotedViewName + "]/*[self::iPointRef or self::interactionPointRef][@view!=" + quotedViewName + "]"); foreach (XmlElement adjacentPointElmt in adjacentPointElmts) { string targetViewName = adjacentPointElmt.GetAttribute("view"); if ((iPointInfWrapper.iPointInf.NavTargets[targetViewName] != null) && (iPointInfWrapper.iPointInf.NavTargets[targetViewName].ViewName == targetViewName)) { continue; } InteractionPointInfo target = iPointInfos[targetViewName]; string triggerName = target.ViewName; iPointInfWrapper.iPointInf.NavTargets[targetViewName] = target; } }
private InteractionPointInfoWrapper[] CreateInteractionPointInfos(Type taskType, InteractionPointInfoCollection iPointInfos) { Assembly controllersDefaultAssembly = taskType.Assembly; XmlNodeList iPntNodes = GetTaskRootElement(taskType).SelectNodes( "interactionPoints/*[self::iPoint or self::interactionPoint]"); InteractionPointInfoWrapper[] iPointWrappers = new InteractionPointInfoWrapper[iPntNodes.Count]; for (int i = 0; i < iPntNodes.Count; i++) { InteractionPointInfo ipInfo = CreateInteractionPointInfo(iPntNodes[i] as XmlElement, controllersDefaultAssembly); iPointInfos[ipInfo.ViewName] = ipInfo; iPointWrappers[i] = new InteractionPointInfoWrapper(ipInfo, iPntNodes[i] as XmlElement); } return iPointWrappers; }
private InteractionPointInfoWrapper[] CreateInteractionPointInfos(Type taskType, InteractionPointInfoCollection iPointInfos) { Assembly controllersDefaultAssembly = taskType.Assembly; XmlNodeList iPntNodes = GetTaskRootElement(taskType).SelectNodes( "interactionPoints/*[self::iPoint or self::interactionPoint]"); InteractionPointInfoWrapper[] iPointWrappers = new InteractionPointInfoWrapper[iPntNodes.Count]; for (int i = 0; i < iPntNodes.Count; i++) { InteractionPointInfo ipInfo = CreateInteractionPointInfo(iPntNodes[i] as XmlElement, controllersDefaultAssembly); iPointInfos[ipInfo.ViewName] = ipInfo; iPointWrappers[i] = new InteractionPointInfoWrapper(ipInfo, iPntNodes[i] as XmlElement); } return(iPointWrappers); }