/// <summary> /// Get a collection of UserView objects with the given application Guid. /// </summary> /// <param name="app">Guid for an application.</param> /// <returns> /// UserViewCollection which contains UserView objects that match the /// given Guid, if any. /// </returns> public UserViewCollection GetUserViews(Guid app) { UserViewCollection uvc = new UserViewCollection(m_fdoCache); for (int i = 0; i < List.Count; i++) { IUserView uv = Item(i); if (uv.App == app) { uvc.Add(uv); } } return(uvc); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Sets the userview collection /// </summary> /// <param name="uvc"></param> /// ------------------------------------------------------------------------------------ public void SetUserViewSpecs(UserViewCollection uvc) { CheckDisposed(); m_cuv = uvc; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Loads the specified data in the fdo cache. /// </summary> /// <param name="fdoCache">The fdo cache.</param> /// <param name="alIDs">The al I ds.</param> /// <returns></returns> /// ------------------------------------------------------------------------------------ public static UserViewCollection Load(FdoCache fdoCache, Set<int> alIDs) { UserViewCollection uvc = new UserViewCollection(fdoCache); foreach (int hvo in alIDs) { uvc.Add((UserView)CmObject.CreateFromDBObject(fdoCache, hvo, UserView.GetTypeFromFWClassID(fdoCache, UserView.kClassId), false/*No validation*/, true/*Load into cache*/)); } return uvc; }
/// <summary> /// Get a collection of UserView objects with the given application Guid. /// </summary> /// <param name="app">Guid for an application.</param> /// <returns> /// UserViewCollection which contains UserView objects that match the /// given Guid, if any. /// </returns> public UserViewCollection GetUserViews(Guid app) { UserViewCollection uvc = new UserViewCollection(m_fdoCache); for(int i = 0; i < List.Count; i++) { IUserView uv = Item(i); if (uv.App == app) uvc.Add(uv); } return uvc; }