本文整理汇总了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.
}
示例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.
}