コード例 #1
0
        /// <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);
        }
コード例 #2
0
ファイル: InMemoryFdoCache.cs プロジェクト: sillsdev/WorldPad
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Sets the userview collection
		/// </summary>
		/// <param name="uvc"></param>
		/// ------------------------------------------------------------------------------------
		public void SetUserViewSpecs(UserViewCollection uvc)
		{
			CheckDisposed();
			m_cuv = uvc;
		}
コード例 #3
0
ファイル: CellarOverrides.cs プロジェクト: sillsdev/WorldPad
		/// ------------------------------------------------------------------------------------
		/// <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;
		}
コード例 #4
0
		/// <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;
		}