public static bool IsRunningSelecting(PXGraph graph) { RunningSelectingScope <DAC> scope = PXContext.GetSlot <RunningSelectingScope <DAC> >(); if (scope == null) { return(false); } else { return(scope._GraphList.Exists(e => e == graph.GetType().FullName)); } }
public RunningSelectingScope(PXGraph myGraph) { _MyGraphSelecting = myGraph.GetType().FullName; _Previous = PXContext.GetSlot <RunningSelectingScope <DAC> >(); if (_Previous == null) { _GraphList = new List <string>(); } else { _GraphList = new List <string>(_Previous._GraphList); } _GraphList.Add(_MyGraphSelecting); PXContext.SetSlot <RunningSelectingScope <DAC> >(this); }