Ejemplo n.º 1
0
		/// <summary>
		///
		/// </summary>
		/// <param name="clid"></param>
		/// <param name="iLevel"></param>
		/// <param name="vwt"></param>
		public void Init(int clid, int iLevel, UserViewType vwt)
		{
			Clsid = clid;
			Level = iLevel;
			m_vwt = vwt;
		}
Ejemplo n.º 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Create RecordSpecs for default UserViewSpecs for the various views.
		/// </summary>
		/// <param name="userViewType">view type (e.g., kvwtConc, kvwtDraft)</param>
		/// <param name="taskName">Name of the task.</param>
		/// <param name="shortName">The short name of the view.</param>
		/// <returns>Newly created UserViewSpec</returns>
		/// ------------------------------------------------------------------------------------
		private UserView MakeNewView(UserViewType userViewType, string taskName,
			string shortName)
		{
			int hvoUserView = Cache.CreateObject(UserView.kclsidUserView);
			UserView userView = new UserView(Cache, hvoUserView);
			m_cache.UserViewSpecs.Add(userView);

			userView.Type = (int)userViewType;
			userView.FactoryView = true;
			userView.App = TeApp.AppGuid;
			userView.TaskName = taskName;
			userView.ViewNameShort = shortName; // prob same as userView.Name

			return userView;
		}