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


C# ISilDataAccess.set_WritingSystemFactory方法代码示例

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


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

示例1: MakeRoot

		public override void MakeRoot()
		{
			m_rootb = (IVwRootBox)new FwViews.VwRootBoxClass();
			m_rootb.SetSite(this);

			int hvoRoot = 1;

			m_sda = (ISilDataAccess) new FwViews.VwCacheDaClass();
			// Usually not here, but in some application global passed to each view.
			m_wsf = (ILgWritingSystemFactory) new FwLanguage.LgWritingSystemFactoryClass();
			m_sda.set_WritingSystemFactory(m_wsf);
			m_rootb.set_DataAccess(m_sda);

			ITsStrFactory tsf = (ITsStrFactory)new FwKernelLib.TsStrFactoryClass();
			ITsString tss = tsf.MakeString("Hello World! This is a view", m_wsf.get_UserWs());

			IVwCacheDa cda = (IVwCacheDa) m_sda;
			cda.CacheStringProp(hvoRoot, ktagProp, tss);

			m_vVc = new HvVc();

			m_rootb.SetRootObject(hvoRoot, m_vVc, kfrText, null);
			m_fRootboxMade = true;
			m_dxdLayoutWidth = -50000; // Don't try to draw until we get OnSize and do layout.
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:25,代码来源:HelloViewView.cs

示例2: MakeRoot

		public override void MakeRoot()
		{
			m_rootb = (IVwRootBox)new FwViews.VwRootBoxClass();
			m_rootb.SetSite(this);

			m_sda = (ISilDataAccess) new FwViews.VwCacheDaClass();
			// Usually not here, but in some application global passed to each view.
			m_wsf = (ILgWritingSystemFactory) new FwLanguage.LgWritingSystemFactoryClass();
			m_sda.set_WritingSystemFactory(m_wsf);
			m_rootb.set_DataAccess(m_sda);

			m_vc = new ViewSampleVc(); // Before LoadData, which sets some of its properties.

			LoadData("data.xml");

			m_rootb.SetRootObject(khvoBook, m_vc, ViewSampleVc.kfrBook, new SimpleStyleSheet());
			m_fRootboxMade = true;
			m_dxdLayoutWidth = -50000; // Don't try to draw until we get OnSize and do layout.
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:19,代码来源:ViewSampleView.cs


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