• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# XCore类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中XCore的典型用法代码示例。如果您正苦于以下问题:C# XCore类的具体用法?C# XCore怎么用?C# XCore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



XCore类属于命名空间,在下文中一共展示了XCore类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Initialize

		public void Initialize(string sFormat, XCore.IHelpTopicProvider helpTopicProvider, bool fGenDate)
		{
			m_tbFormat.Text = sFormat;
			m_helpTopicProvider = helpTopicProvider;
			m_fGenDate = fGenDate;
			ApplyFormat();
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:7,代码来源:ImportDateFormatDlg.cs


示例2: AddGroup

        /// <summary>
        ///
        /// </summary>
        /// <param name="group"></param>
        public void AddGroup(XCore.ChoiceGroup group)
        {
            ClearMainPanelControls();
            ArrayList l = new ArrayList(group.Count);
            foreach(ChoiceRelatedClass item in group)
            {
                l.Add(item);
            }
            l.Reverse();

            foreach(ChoiceRelatedClass item in l)
            {
                XCore.ChoiceRelatedClass choice = (XCore.ChoiceRelatedClass)this.Tag;
                UIItemDisplayProperties display = item.GetDisplayProperties();
                if (!display.Visible)
                    continue;
                if(item is ChoiceBase)
                {
                    AddHotlink((ChoiceBase)item);
                }
                else if(item is ChoiceGroup)
                {
                    AddMenu((ChoiceGroup)item);
                }
            }
        }
开发者ID:sillsdev,项目名称:CarlaLegacy,代码行数:30,代码来源:PaneBar.cs


示例3: MakeInflAffixEntryChooserCommand

		public MakeInflAffixEntryChooserCommand(FdoCache cache, bool fCloseBeforeExecuting,
			string sLabel, bool fPrefix, IMoInflAffixSlot slot, XCore.Mediator mediator)
			: base(cache, fCloseBeforeExecuting, sLabel, mediator)
		{
			m_fPrefix = fPrefix;
			m_slot = slot;
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:7,代码来源:ChooserCommand.cs


示例4: Init

		public override void Init(XCore.Mediator mediator, System.Xml.XmlNode viewConfiguration)
		{
			base.Init(mediator, viewConfiguration);
			XmlNode clerkConfiguration = ToolConfiguration.GetClerkNodeFromToolParamsNode(viewConfiguration);
			var subitemNames = XmlUtils.GetManditoryAttributeValue(clerkConfiguration, "field").Split('.');
			SubitemFlid = Cache.MetaDataCacheAccessor.GetFieldId(subitemNames[0].Trim(), subitemNames[1].Trim(), true);
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:7,代码来源:SubitemRecordClerk.cs


示例5: PanelButton

		public PanelButton(XCore.ChoiceBase choice, ImageCollection images):base()
		{
			m_images = images;

			this.Dock = System.Windows.Forms.DockStyle.Right;
			this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Location = new System.Drawing.Point(576, 2);
			this.Name = "panelEx1";
			this.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.Size = new System.Drawing.Size(120, 20);
#if USE_DOTNETBAR
			this.Style.Alignment = System.Drawing.StringAlignment.Center;
			this.Style.GradientAngle = 90;
#endif

			this.MouseEnter += new EventHandler(panelButton_MouseEnter);
			this.MouseLeave += new EventHandler(panelButton_MouseLeave);
			this.MouseDown += new MouseEventHandler(panelButton_MouseDown);

			this.Click += new EventHandler(PanelButton_Click);
			this.TabIndex = 0;

			this.Tag = choice;
			SetLabel();
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:25,代码来源:PanelButton.cs


示例6: Initialize

		public void Initialize(ICmObject rootObj, int rootFlid, FdoCache cache, string displayNameProperty,
			XCore.Mediator mediator, string displayWs)
		{
			CheckDisposed();
			m_displayWs = displayWs;
			base.Initialize(rootObj, rootFlid, cache, displayNameProperty, mediator);
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:7,代码来源:VectorReferenceView.cs


示例7: RuleFormulaVcBase

		protected RuleFormulaVcBase(FdoCache cache, XCore.Mediator mediator)
			: base(cache, mediator)
		{
			ITsStrFactory tsf = m_cache.TsStrFactory;
			int userWs = m_cache.DefaultUserWs;
			m_infinity = tsf.MakeString("\u221e", userWs);
			m_x = tsf.MakeString("X", userWs);
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:8,代码来源:RuleFormulaVcBase.cs


示例8: ChooserCommand

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:ChooserCommand"/> class.
		/// </summary>
		/// <param name="cache">The cache.</param>
		/// <param name="fCloseBeforeExecuting">if set to <c>true</c> [f close before executing].</param>
		/// <param name="sLabel">The s label.</param>
		/// <param name="mediator">The mediator.</param>
		/// ------------------------------------------------------------------------------------
		public ChooserCommand(FdoCache cache, bool fCloseBeforeExecuting, string sLabel,
			XCore.Mediator mediator)
		{
			m_cache = cache;
			m_fShouldCloseBeforeExecuting = fCloseBeforeExecuting;
			m_sLabel = sLabel + "  ";  // Extra spaces are just a hack to keep the label from being truncated - I have no idea why it is being truncated
			m_mediator = mediator;
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:17,代码来源:ChooserCommandBase.cs


示例9: OnDisplayContextSetOccurrence

		public bool OnDisplayContextSetOccurrence(object commandObject, ref XCore.UIItemDisplayProperties display)
		{
			CheckDisposed();
			bool enable = RegRuleFormulaControl.CanModifyContextOccurrence;
			display.Enabled = enable;
			display.Visible = enable;
			return true;
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:8,代码来源:RegRuleFormulaSlice.cs


示例10: OnDisplayMappingJumpToPhoneme

		public virtual bool OnDisplayMappingJumpToPhoneme(object commandObject, ref XCore.UIItemDisplayProperties display)
		{
			CheckDisposed();
			bool enable = AffixRuleFormulaControl.IsPhonemeCurrent;
			display.Enabled = enable;
			display.Visible = enable;
			return true;
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:8,代码来源:AffixRuleFormulaSlice.cs


示例11: OnDisplayContextSetVariables

		public bool OnDisplayContextSetVariables(object commandObject, ref XCore.UIItemDisplayProperties display)
		{
			CheckDisposed();
			bool enable = RuleFormulaControl.IsFeatsNCContextCurrent;
			display.Enabled = enable;
			display.Visible = enable;
			return true;
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:8,代码来源:RegRuleFormulaSlice.cs


示例12: OnDisplayMappingJumpToNaturalClass

		public bool OnDisplayMappingJumpToNaturalClass(object commandObject, ref XCore.UIItemDisplayProperties display)
		{
			CheckDisposed();
			bool enable = AffixRuleFormulaControl.IsNCIndexCurrent;
			display.Enabled = enable;
			display.Visible = enable;
			return true;
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:8,代码来源:AffixRuleFormulaSlice.cs


示例13: AffixRuleFormulaVc

		public AffixRuleFormulaVc(FdoCache cache, XCore.Mediator mediator)
			: base(cache, mediator)
		{
			ITsPropsBldr tpb = TsPropsBldrClass.Create();
			tpb.SetStrPropValue((int)FwTextPropType.ktptFontFamily, MiscUtils.StandardSansSerif);
			tpb.SetIntPropValues((int)FwTextPropType.ktptFontSize, (int)FwTextPropVar.ktpvMilliPoint, 10000);
			tpb.SetIntPropValues((int)FwTextPropType.ktptBorderColor, (int)FwTextPropVar.ktpvDefault,
				(int)ColorUtil.ConvertColorToBGR(Color.Gray));
			tpb.SetIntPropValues((int)FwTextPropType.ktptForeColor, (int)FwTextPropVar.ktpvDefault,
				(int)ColorUtil.ConvertColorToBGR(Color.Gray));
			tpb.SetIntPropValues((int)FwTextPropType.ktptEditable, (int)FwTextPropVar.ktpvEnum, (int)TptEditable.ktptNotEditable);
			m_headerProps = tpb.GetTextProps();

			tpb = TsPropsBldrClass.Create();
			tpb.SetIntPropValues((int)FwTextPropType.ktptBold, (int)FwTextPropVar.ktpvEnum, (int)FwTextToggleVal.kttvForceOn);
			tpb.SetIntPropValues((int)FwTextPropType.ktptFontSize, (int)FwTextPropVar.ktpvMilliPoint, 24000);
			tpb.SetIntPropValues((int)FwTextPropType.ktptForeColor, (int)FwTextPropVar.ktpvDefault,
				(int)ColorUtil.ConvertColorToBGR(Color.Gray));
			tpb.SetIntPropValues((int)FwTextPropType.ktptAlign, (int)FwTextPropVar.ktpvEnum, (int)FwTextAlign.ktalCenter);
			tpb.SetStrPropValue((int)FwTextPropType.ktptFontFamily, "Charis SIL");
			tpb.SetIntPropValues((int)FwTextPropType.ktptEditable, (int)FwTextPropVar.ktpvEnum, (int)TptEditable.ktptNotEditable);
			m_arrowProps = tpb.GetTextProps();

			tpb = TsPropsBldrClass.Create();
			tpb.SetIntPropValues((int)FwTextPropType.ktptBorderTop, (int)FwTextPropVar.ktpvMilliPoint, 1000);
			tpb.SetIntPropValues((int)FwTextPropType.ktptBorderBottom, (int)FwTextPropVar.ktpvMilliPoint, 1000);
			tpb.SetIntPropValues((int)FwTextPropType.ktptBorderTrailing, (int)FwTextPropVar.ktpvMilliPoint, 1000);
			tpb.SetIntPropValues((int)FwTextPropType.ktptBorderColor, (int)FwTextPropVar.ktpvDefault,
				(int)ColorUtil.ConvertColorToBGR(Color.Gray));
			tpb.SetIntPropValues((int)FwTextPropType.ktptAlign, (int)FwTextPropVar.ktpvEnum, (int)FwTextAlign.ktalCenter);
			m_ctxtProps = tpb.GetTextProps();

			tpb = TsPropsBldrClass.Create();
			tpb.SetIntPropValues((int)FwTextPropType.ktptBorderBottom, (int)FwTextPropVar.ktpvMilliPoint, 1000);
			tpb.SetIntPropValues((int)FwTextPropType.ktptBorderTrailing, (int)FwTextPropVar.ktpvMilliPoint, 1000);
			tpb.SetIntPropValues((int)FwTextPropType.ktptBorderColor, (int)FwTextPropVar.ktpvDefault,
				(int)ColorUtil.ConvertColorToBGR(Color.Gray));
			tpb.SetIntPropValues((int)FwTextPropType.ktptAlign, (int)FwTextPropVar.ktpvEnum, (int)FwTextAlign.ktalCenter);
			tpb.SetIntPropValues((int)FwTextPropType.ktptEditable, (int)FwTextPropVar.ktpvEnum, (int)TptEditable.ktptNotEditable);
			tpb.SetIntPropValues((int)FwTextPropType.ktptForeColor, (int)FwTextPropVar.ktpvDefault,
				(int)ColorUtil.ConvertColorToBGR(Color.Gray));
			m_indexProps = tpb.GetTextProps();

			tpb = TsPropsBldrClass.Create();
			tpb.SetIntPropValues((int)FwTextPropType.ktptBorderBottom, (int)FwTextPropVar.ktpvMilliPoint, 1000);
			tpb.SetIntPropValues((int)FwTextPropType.ktptBorderColor, (int)FwTextPropVar.ktpvDefault,
				(int)ColorUtil.ConvertColorToBGR(Color.Gray));
			m_resultProps = tpb.GetTextProps();

			var tsf = m_cache.TsStrFactory;
			var userWs = m_cache.DefaultUserWs;
			m_inputStr = tsf.MakeString(MEStrings.ksAffixRuleInput, userWs);
			m_indexStr = tsf.MakeString(MEStrings.ksAffixRuleIndex, userWs);
			m_resultStr = tsf.MakeString(MEStrings.ksAffixRuleResult, userWs);
			m_doubleArrow = tsf.MakeString("\u21d2", userWs);
			m_space = tsf.MakeString(" ", userWs);
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:57,代码来源:AffixRuleFormulaVc.cs


示例14: AddHotlink

		protected  void  AddHotlink(XCore.ChoiceBase choice)
		{
			PanelButton button = new PanelButton(choice, m_smallImages);

			m_panelMain.Controls.Add(button);
			button.Dock=DockStyle.Right;

			WatchPropertyOfButton(button);
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:9,代码来源:PaneBar.cs


示例15: AddMenu

		protected  void  AddMenu(XCore.ChoiceGroup choice)
		{
			PanelMenu button = new PanelMenu(choice,m_smallImages, m_menuBarAdapter);
			Spacer s = new Spacer();
			m_panelMain.Controls.Add(s);
			s.Dock = DockStyle.Left;
			s.Width = 10;
			m_panelMain.Controls.Add(button);
			button.Dock=DockStyle.Left;
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:10,代码来源:PaneBar.cs


示例16: ArchiveWithRamp

		/// ------------------------------------------------------------------------------------
		public ArchiveWithRamp(FdoCache cache, string appAbbrev,
			XCore.IHelpTopicProvider helpTopicProvider)
		{
			m_cache = cache;
			m_appAbbrev = appAbbrev;
			m_helpTopicProvider = helpTopicProvider;
			InitializeComponent();

			get_Last_Backup();
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:11,代码来源:ArchiveWithRamp.cs


示例17: TryAWordRootSite

		public TryAWordRootSite(FdoCache cache, XCore.Mediator mediator)
		{
			m_fdoCache = cache;
			m_mediator = mediator;
			VisibleChanged += OnVisibleChanged;
			var window = mediator.PropertyTable.GetValue("window") as FwXWindow;
			if (window != null)
				m_styleSheet = window.StyleSheet;
			IWritingSystem wsObj = m_fdoCache.ServiceLocator.WritingSystems.DefaultVernacularWritingSystem;
			RightToLeft = wsObj.RightToLeftScript ? RightToLeft.Yes : RightToLeft.No;
			AutoScroll = true;
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:12,代码来源:TryAWordRootSite.cs


示例18: TryAWordRootSite

		public TryAWordRootSite(FdoCache cache, XCore.Mediator mediator)
		{
			m_fdoCache = cache;
			m_mediator = mediator;
			VisibleChanged += new EventHandler(OnVisibleChanged);
			FwXWindow window = mediator.PropertyTable.GetValue("window") as FwXWindow;
			if (window != null)
				m_styleSheet = window.StyleSheet;
			IWritingSystem wsObj = m_fdoCache.LanguageWritingSystemFactoryAccessor.get_EngineOrNull(m_fdoCache.DefaultVernWs);
			RightToLeft = wsObj.RightToLeft ? RightToLeft.Yes : RightToLeft.No;
			AutoScroll = true;
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:12,代码来源:TryAWordRootSite.cs


示例19: Initialize

		public void Initialize(ICmObject rootObj, int rootFlid, FdoCache cache, string displayNameProperty,
				XCore.Mediator mediator)
		{
			CheckDisposed();
			Debug.Assert(cache != null && m_fdoCache == null);
			m_displayNameProperty = displayNameProperty;
			m_fdoCache = cache;
			m_rootObj = rootObj;
			m_rootFlid = rootFlid;
			Mediator = mediator;
			if (m_rootb == null)
				MakeRoot();
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:13,代码来源:ReferenceViewBase.cs


示例20: Initialize

		public override void Initialize(FdoCache cache, ICmObject obj, int flid, string fieldName, IPersistenceProvider persistProvider,
			XCore.Mediator mediator, string displayNameProperty, string displayWs)
		{
			CheckDisposed();
			base.Initialize(cache, obj, flid, fieldName, persistProvider, mediator, displayNameProperty, displayWs);

			m_view.Init(mediator, obj, this, new MetaRuleFormulaVc(cache, mediator), MetaRuleFormulaVc.kfragRule);

			m_insertionControl.AddOption(new InsertOption(RuleInsertType.Phoneme), DisplayOption);
			m_insertionControl.AddOption(new InsertOption(RuleInsertType.NaturalClass), DisplayOption);
			m_insertionControl.AddOption(new InsertOption(RuleInsertType.Features), DisplayOption);
			m_insertionControl.AddOption(new InsertOption(RuleInsertType.WordBoundary), DisplayOption);
			m_insertionControl.AddOption(new InsertOption(RuleInsertType.MorphemeBoundary), DisplayOption);
			m_insertionControl.NoOptionsMessage = DisplayNoOptsMsg;
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:15,代码来源:MetaRuleFormulaControl.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# XDoc类代码示例发布时间:2022-05-24
下一篇:
C# XColor类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap