ModuleOpened (BlueArrow)
The code written in this section specifies the fields which are passed as arguments to modules opened with the use of Blue Arrows, so the module will make the arguments needed for a retrieve at opening.
For modules having no arguments, or module which don’t need to do a retrieve, the below code is not needed.
There are two possibilities of passing the module to the control:
specify the moduleID in the “BlueArrow Module” property of the control

passing the moduleID in the ModuleOpened WHO-Method. In this case, an empty string (space) will represent the moduleID

public override void ModuleOpened(FrameworkElement source, xWHOModule newModule)
{
base.ModuleOpened(source, newModule);
if (source.Name == tbsBetriebsauftrag.Name)
{
OpenCurrentBetriebsauftrag();
}
else if (source.Name == tbBabWz.Name)
{
OpenCurrentWerkzeug();
}
}
public virtual void OpenCurrentWerkzeug()
{
if (SelectedBabRow == null) return;
ModuleCaller.Open.Res(SelectedBabRow.wz);
}
Last updated