public static TimeEvent Find(TimeEvent.Name name) { TimerMan pMan = TimerMan.privGetInstance(); Debug.Assert(pMan != null); Debug.Assert(pMan.poNodeCompare != null); pMan.poNodeCompare.Wash(); pMan.poNodeCompare.SetName(name); TimeEvent pData = (TimeEvent)pMan.baseFind(pMan.poNodeCompare); return(pData); }
public static TimeEvent Find(TimeEvent.Name name) { // ensure call Create() first TimerMan pMan = TimerMan.GetInstance(); Debug.Assert(pMan != null); Debug.Assert(pMan.poNodeForCompare != null); pMan.poNodeForCompare.setName(name); TimeEvent pData = (TimeEvent)pMan.baseFind(pMan.poNodeForCompare); return(pData); }
public static TimeEvent Find(TimeEvent.Name name) { //TimerMan pMan = TimerMan.privGetInstance(); TimerMan pMan = TimerMan.pActiveTmMan; Debug.Assert(pMan != null); // Compare functions only compares two Nodes // So: Use the Compare Node - as a reference // use in the Compare() function Debug.Assert(pMan.poNodeCompare != null); pMan.poNodeCompare.Wash(); pMan.poNodeCompare.name = name; TimeEvent pData = (TimeEvent)pMan.baseFind(pMan.poNodeCompare); return(pData); }