本文整理汇总了C#中XCore类的典型用法代码示例。如果您正苦于以下问题:C# XCore类的具体用法?C# XCore怎么用?C# XCore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XCore类属于命名空间,在下文中一共展示了XCore类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
public void Initialize(string sFormat, XCore.IHelpTopicProvider helpTopicProvider, bool fGenDate)
{
m_tbFormat.Text = sFormat;
m_helpTopicProvider = helpTopicProvider;
m_fGenDate = fGenDate;
ApplyFormat();
}
示例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);
}
}
}
示例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;
}
示例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);
}
示例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();
}
示例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);
}
示例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);
}
示例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;
}
示例9: OnDisplayContextSetOccurrence
public bool OnDisplayContextSetOccurrence(object commandObject, ref XCore.UIItemDisplayProperties display)
{
CheckDisposed();
bool enable = RegRuleFormulaControl.CanModifyContextOccurrence;
display.Enabled = enable;
display.Visible = enable;
return true;
}
示例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;
}
示例11: OnDisplayContextSetVariables
public bool OnDisplayContextSetVariables(object commandObject, ref XCore.UIItemDisplayProperties display)
{
CheckDisposed();
bool enable = RuleFormulaControl.IsFeatsNCContextCurrent;
display.Enabled = enable;
display.Visible = enable;
return true;
}
示例12: OnDisplayMappingJumpToNaturalClass
public bool OnDisplayMappingJumpToNaturalClass(object commandObject, ref XCore.UIItemDisplayProperties display)
{
CheckDisposed();
bool enable = AffixRuleFormulaControl.IsNCIndexCurrent;
display.Enabled = enable;
display.Visible = enable;
return true;
}
示例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);
}
示例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);
}
示例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;
}