/// <summary> /// Make one, do the action, add it to the action handler; or if there is no action handler, just /// do it. /// </summary> /// <param name="cache"></param> /// <param name="hvo"></param> /// <param name="flid"></param> /// <param name="newValue"></param> public static void SetItUp(FdoCache cache, int hvo, int flid, int newValue) { CacheObjPropUndoAction action = new CacheObjPropUndoAction(cache.MainCacheAccessor, hvo, flid, newValue); if (cache.ActionHandlerAccessor != null) { cache.ActionHandlerAccessor.AddAction(action); } }
/// <summary> /// Make one, do the action, add it to the action handler; or if there is no action handler, just /// do it. /// </summary> /// <param name="cache"></param> /// <param name="hvo"></param> /// <param name="flid"></param> /// <param name="newValue"></param> public static void SetItUp(FdoCache cache, int hvo, int flid, int newValue) { CacheObjPropUndoAction action = new CacheObjPropUndoAction(cache.MainCacheAccessor, hvo, flid, newValue); if (cache.ActionHandlerAccessor != null) cache.ActionHandlerAccessor.AddAction(action); }