当前位置: 首页>>代码示例>>C#>>正文


C# IVwViewConstructor.Display方法代码示例

本文整理汇总了C#中IVwViewConstructor.Display方法的典型用法代码示例。如果您正苦于以下问题:C# IVwViewConstructor.Display方法的具体用法?C# IVwViewConstructor.Display怎么用?C# IVwViewConstructor.Display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IVwViewConstructor的用法示例。


在下文中一共展示了IVwViewConstructor.Display方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddReversedObjVecItems

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Adds the obj vec items in reverse order.
		/// </summary>
		/// <param name="tag">The tag.</param>
		/// <param name="vc">The vc.</param>
		/// <param name="frag">The frag.</param>
		/// ------------------------------------------------------------------------------------
		public virtual void AddReversedObjVecItems(int tag, IVwViewConstructor vc, int frag)
		{
			if (Finished)
				return;
			OpenProp(tag);
			int cobj = m_sda.get_VecSize(m_hvoCurr, tag);

			for (int i = cobj - 1; i >= 0; --i)
			{
				int hvoItem = m_sda.get_VecItem(m_hvoCurr, tag, i);
				if (DisplayThisObject(hvoItem, tag))
				{
					OpenTheObject(hvoItem, i);
					vc.Display(this, hvoItem, frag);
					CloseTheObject();
				}
				if (Finished)
					break;
			}

			CloseProp();
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:30,代码来源:CollectorEnv.cs

示例2: AddObjProp

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Adds the obj prop.
		/// </summary>
		/// <param name="tag">The tag.</param>
		/// <param name="vc">The vc.</param>
		/// <param name="frag">The frag.</param>
		/// ------------------------------------------------------------------------------------
		public virtual void AddObjProp(int tag, IVwViewConstructor vc, int frag)
		{
			if (Finished)
				return;
			int hvoItem = m_sda.get_ObjectProp(m_hvoCurr, tag);
			if (hvoItem != 0)
			{
				OpenProp(tag);
				OpenTheObject(hvoItem, 0);
				vc.Display(this, hvoItem, frag);
				CloseTheObject();
				CloseProp();
			}
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:22,代码来源:CollectorEnv.cs

示例3: AddObj

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Adds the obj.
		/// </summary>
		/// <param name="hvoItem">The hvo item.</param>
		/// <param name="vc">The vc.</param>
		/// <param name="frag">The frag.</param>
		/// ------------------------------------------------------------------------------------
		public virtual void AddObj(int hvoItem, IVwViewConstructor vc, int frag)
		{
			if (Finished)
				return;
			OpenProp((int)VwSpecialAttrTags.ktagNotAnAttr);
			OpenTheObject(hvoItem, 0);
			vc.Display(this, hvoItem, frag);
			CloseTheObject();
			CloseProp();
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:18,代码来源:CollectorEnv.cs

示例4: AddObjVecItems

		/// <summary/>
		public virtual void AddObjVecItems(int tag, IVwViewConstructor vc, int frag)
		{
			if (Finished)
				return;
			OpenProp(tag);
			int[] items = null;
			var managedSda = m_sda as ISilDataAccessManaged;
			int cobj;
			if (managedSda != null)
			{
				// If the vector should be virtual, we have to compute it only once.
				// Note: we COULD do this with the VecProp method of the regular ISilDataAccess.
				// But in practice the SDA will (almost?) always be a managed one, and using the
				// COM VecProp involves marshalling that is messy and slow on both sides.
				items = managedSda.VecProp(m_hvoCurr, tag);
				cobj = items.Length;
			}
			else
			{
				cobj = m_sda.get_VecSize(m_hvoCurr, tag);
			}

			for (int i = 0; i < cobj; i++)
			{
				int hvoItem;
				if (items == null)
					hvoItem = m_sda.get_VecItem(m_hvoCurr, tag, i);
				else
					hvoItem = items[i];
				if (DisplayThisObject(hvoItem, tag))
				{
					OpenTheObject(hvoItem, i);
					vc.Display(this, hvoItem, frag);
					CloseTheObject();
				}
				if (Finished)
					break;
			}

			CloseProp();
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:42,代码来源:CollectorEnv.cs

示例5: AddObj

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Adds the obj.
		/// </summary>
		/// <param name="hvoItem">The hvo item.</param>
		/// <param name="vc">The vc.</param>
		/// <param name="frag">The frag.</param>
		/// ------------------------------------------------------------------------------------
		public virtual void AddObj(int hvoItem, IVwViewConstructor vc, int frag)
		{
			if (Finished)
				return;
			bool wasPropOpen = m_fIsPropOpen;
			if (!m_fIsPropOpen)
			{
				// AddObj in the middle of an arbitrary object is treated as the phony property NotAnAttr.
				// If a property is already open (AddObjVec), we treat it as one of the objects in
				// that property.
				OpenProp((int) VwSpecialAttrTags.ktagNotAnAttr);
			}

			int ihvo;
			if (m_vectorItemIndex.TryGetValue(m_tagCurrent, out ihvo))
				m_vectorItemIndex[m_tagCurrent] = ++ihvo;
			else
				ihvo = 0; // not a vector item.
			OpenTheObject(hvoItem, ihvo);
			vc.Display(this, hvoItem, frag);
			CloseTheObject();
			if (!wasPropOpen)
				CloseProp();
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:32,代码来源:CollectorEnv.cs

示例6: AddObjVecItems

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Adds the obj vec items.
		/// </summary>
		/// <param name="tag">The tag.</param>
		/// <param name="vc">The vc.</param>
		/// <param name="frag">The frag.</param>
		/// ------------------------------------------------------------------------------------
		public override void AddObjVecItems(int tag, IVwViewConstructor vc, int frag)
		{
			CurrentContext ccOld = WriteFieldStartTag(tag);
			OpenProp(tag);
			int cobj = DataAccess.get_VecSize(CurrentObject(),tag);

			for (int i = 0; i < cobj; i++)
			{
				int hvoItem = DataAccess.get_VecItem(CurrentObject(), tag, i);
				OpenTheObject(hvoItem, i);
				CurrentContext ccPrev = WriteClassStartTag(hvoItem);

				vc.Display(this, hvoItem, frag);

				WriteClassEndTag(hvoItem, ccPrev);
				CloseTheObject();
				if (Finished)
					break;
				if (m_fCancel)
					throw new CancelException(XMLViewsStrings.ConfiguredExportHasBeenCancelled);
			}

			CloseProp();
			WriteFieldEndTag(tag, ccOld);
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:33,代码来源:ConfiguredExport.cs

示例7: AddObjVecItems

		/// <summary>
		/// Display a vector property. Calls <c>IVwViewConstructor.Display</c> for each item in
		///              the vector, passing the HVO of each item (obtained by passing the HVO and tag to
		///              <c>ISilDataAccess.get_VecItem</c>) and the frag specied here, to the view
		///              constructor specified here (usually the caller of the method).
		/// </summary>
		/// <param name="tag"/><param name="_vwvc"/><param name="frag"/>
		public void AddObjVecItems(int tag, IVwViewConstructor vc, int frag)
		{
			//OpenProp(tag);
			int cobj = DataAccess.get_VecSize(OpenObject, tag);

			for (int i = 0; i < cobj; i++)
			{
				int hvoItem = DataAccess.get_VecItem(OpenObject, tag, i);
					OpenTheObject(hvoItem, i);
					vc.Display(this, hvoItem, frag);
					CloseTheObject();
				//if (Finished)
				//    break;
			}

			//CloseProp();
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:24,代码来源:XmlVcTests.cs


注:本文中的IVwViewConstructor.Display方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。