本文整理汇总了C#中IHelpTopicProvider.GetHelpString方法的典型用法代码示例。如果您正苦于以下问题:C# IHelpTopicProvider.GetHelpString方法的具体用法?C# IHelpTopicProvider.GetHelpString怎么用?C# IHelpTopicProvider.GetHelpString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IHelpTopicProvider
的用法示例。
在下文中一共展示了IHelpTopicProvider.GetHelpString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SimpleIntegerMatchDlg
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="SimpleIntegerMatchDlg"/> class.
/// </summary>
/// <param name="helpTopicProvider">The help topic provider.</param>
/// ------------------------------------------------------------------------------------
public SimpleIntegerMatchDlg(IHelpTopicProvider helpTopicProvider) : this()
{
m_helpTopicProvider = helpTopicProvider;
helpProvider1.HelpNamespace = m_helpTopicProvider.HelpFile;
helpProvider1.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic));
helpProvider1.SetHelpNavigator(this, HelpNavigator.Topic);
}
示例2: MergeWritingSystemDlg
public MergeWritingSystemDlg(FdoCache cache, IWritingSystem ws, IEnumerable<IWritingSystem> wss, IHelpTopicProvider helpTopicProvider)
{
m_cache = cache;
m_ws = ws;
//
// Required for Windows Form Designer support
//
InitializeComponent();
Icon infoIcon = SystemIcons.Information;
m_infoPictureBox.Image = infoIcon.ToBitmap();
m_infoPictureBox.Size = infoIcon.Size;
foreach (IWritingSystem curWs in wss.Except(new[] { ws }))
m_wsListBox.Items.Add(curWs);
m_wsListBox.SelectedIndex = 0;
m_helpTopicProvider = helpTopicProvider;
if (m_helpTopicProvider != null) // m_helpTopicProvider could be null for testing
{
m_helpProvider = new HelpProvider();
m_helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile;
m_helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(HelpTopic));
m_helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
}
}
示例3: ConfigureInterlinDialog
public ConfigureInterlinDialog(FdoCache cache, IHelpTopicProvider helpTopicProvider,
InterlinLineChoices choices)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
AccessibleName = GetType().Name;
m_helpTopicProvider = helpTopicProvider;
helpProvider = new HelpProvider();
helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile;
helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic));
helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
m_cachedComboBoxes = new Dictionary<ColumnConfigureDialog.WsComboContent, ComboBox.ObjectCollection>();
m_cache = cache;
m_choices = choices;
InitPossibilitiesList();
// Owner draw requires drawing the column header as well as the list items. See LT-7007.
currentList.DrawColumnHeader += currentList_DrawColumnHeader;
InitCurrentList(0); // also inits WsCombo.
currentList.SelectedIndexChanged += currentList_SelectedIndexChanged;
optionsList.SelectedIndexChanged += optionsList_SelectedIndexChanged;
EnableControls();
}
示例4: AdvancedMTDialog
internal AdvancedMTDialog(FdoCache cache, bool fPrepose, CChartSentenceElements ccSentElem, IHelpTopicProvider helpTopicProvidor)
{
InitializeComponent();
SuspendLayout();
m_helpTopicProvider = helpTopicProvidor;
if (m_helpTopicProvider != null)
{
helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile;
helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic));
helpProvider.SetShowHelp(this, true);
}
m_AMTDLogic = new AdvancedMTDialogLogic(cache, fPrepose, ccSentElem);
m_bottomStuff.SuspendLayout();
m_bottomStuff.Controls.AddRange(new Control[] { m_AMTDLogic.DlgRibbon });
m_bottomStuff.ResumeLayout();
// Setup localized dialog
SetCaption(fPrepose ? DiscourseStrings.ksAdvDlgPreposeCaption : DiscourseStrings.ksAdvDlgPostposeCaption);
SetMainText(fPrepose ? DiscourseStrings.ksAdvDlgMainPreText : DiscourseStrings.ksAdvDlgMainPostText);
SetPartialText(fPrepose ? DiscourseStrings.ksAdvDlgPartialPre : DiscourseStrings.ksAdvDlgPartialPost);
ResumeLayout();
InitLogicAndDialog();
}
示例5: ShowHelpTopic
/// ------------------------------------------------------------------------------------
/// <summary>
/// Show a help topic.
/// </summary>
/// <param name="helpTopicProvider"></param>
/// <param name="helpFileKey">string key to get the help file name</param>
/// <param name="helpTopicKey">string key to get the help topic</param>
/// ------------------------------------------------------------------------------------
public static void ShowHelpTopic(IHelpTopicProvider helpTopicProvider, string helpFileKey,
string helpTopicKey)
{
string helpFile;
// sanity check
if (helpTopicProvider == null || helpFileKey == null || helpTopicKey == null ||
string.Empty.Equals(helpFileKey) || string.Empty.Equals(helpTopicKey))
return;
// try to get a path to the help file.
try
{
helpFile = FwDirectoryFinder.CodeDirectory +
helpTopicProvider.GetHelpString(helpFileKey);
}
catch
{
MessageBox.Show(FwUtilsStrings.ksCannotFindHelp);
return;
}
// try to get a topic to show
string helpTopic = helpTopicProvider.GetHelpString(helpTopicKey);
if (string.IsNullOrEmpty(helpTopic))
{
MessageBox.Show(String.Format(FwUtilsStrings.ksNoHelpTopicX, helpTopicKey));
return;
}
// Show the help. We have to use a label because without it the help is always on top of the window
Help.ShowHelp(new Label(), helpFile, helpTopic);
}
示例6: LexReferenceDetailsDlg
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="LexReferenceDetailsDlg"/> class.
/// </summary>
/// <param name="helpTopicProvider">The help topic provider.</param>
/// ------------------------------------------------------------------------------------
public LexReferenceDetailsDlg(IHelpTopicProvider helpTopicProvider) : this()
{
m_helpTopicProvider = helpTopicProvider;
helpProvider = new HelpProvider();
helpProvider.HelpNamespace = helpTopicProvider.HelpFile;
helpProvider.SetHelpKeyword(this, helpTopicProvider.GetHelpString(s_helpTopic));
helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
}
示例7: GenDateChooserDlg
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="GenDateChooserDlg"/> class.
/// </summary>
/// <param name="helpTopicProvider">The help topic provider.</param>
/// ------------------------------------------------------------------------------------
public GenDateChooserDlg(IHelpTopicProvider helpTopicProvider) : this()
{
m_helpTopicProvider = helpTopicProvider;
if (m_helpTopicProvider != null)
{
m_helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile;
m_helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(m_helpTopic));
m_helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
}
}
示例8: NoProjectFoundDlg
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="NoProjectFoundDlg"/> class.
/// </summary>
/// <param name="helpTopicProvider"></param>
/// ------------------------------------------------------------------------------------
public NoProjectFoundDlg(IHelpTopicProvider helpTopicProvider)
{
InitializeComponent();
//
// helpProvider
//
m_helpTopicProvider = helpTopicProvider;
this.helpProvider = new System.Windows.Forms.HelpProvider();
this.helpProvider.HelpNamespace = DirectoryFinder.FWCodeDirectory + m_helpTopicProvider.GetHelpString("UserHelpFile", 0);
this.helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic, 0));
this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic);
// make sure no open ICU files -dlh
IIcuCleanupManager icm = IcuCleanupManagerClass.Create();
icm.Cleanup();
Marshal.ReleaseComObject(icm);
icm = null;
Logger.WriteEvent("Opening 'Welcome to FieldWorks' dialog");
}
示例9: SimpleDateMatchDlg
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="T:SimpleDateMatchDlg"/> class.
/// </summary>
/// <param name="helpTopicProvider">The help topic provider.</param>
/// ------------------------------------------------------------------------------------
public SimpleDateMatchDlg(IHelpTopicProvider helpTopicProvider)
{
InitializeComponent();
AccessibleName = GetType().Name;
m_typeCombo.SelectedIndex = 0;
m_helpTopicProvider = helpTopicProvider;
helpProvider1.HelpNamespace = helpTopicProvider.HelpFile;
helpProvider1.SetHelpKeyword(this, helpTopicProvider.GetHelpString(s_helpTopic));
helpProvider1.SetHelpNavigator(this, HelpNavigator.Topic);
}
示例10: UtilityDlg
/// <summary>
/// Constructor.
/// </summary>
public UtilityDlg(IHelpTopicProvider helpTopicProvider)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
m_btnRunUtils.Enabled = false;
m_helpTopicProvider = helpTopicProvider;
helpProvider = new System.Windows.Forms.HelpProvider();
helpProvider.HelpNamespace = DirectoryFinder.FWCodeDirectory + m_helpTopicProvider.GetHelpString("UserHelpFile", 0);
helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic, 0));
helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic);
// The standard localization doesn't seem to be working, so do it explicitly here.
label1.Text = SIL.FieldWorks.FwCoreDlgs.FwCoreDlgs.ksUtilities;
label2.Text = SIL.FieldWorks.FwCoreDlgs.FwCoreDlgs.ksDescription;
m_btnHelp.Text = SIL.FieldWorks.FwCoreDlgs.FwCoreDlgs.ksHelp;
m_btnClose.Text = SIL.FieldWorks.FwCoreDlgs.FwCoreDlgs.ks_Close;
m_btnRunUtils.Text = SIL.FieldWorks.FwCoreDlgs.FwCoreDlgs.ksRunUtilities;
}
示例11: Initialize
/// ------------------------------------------------------------------------------------
/// <summary>
/// Populate the combo box and default to the ws from the current text.
/// </summary>
/// <param name="cache">The cache.</param>
/// <param name="helpTopicProvider">The help topic provider.</param>
/// <param name="wsCurrent">The ws current.</param>
/// ------------------------------------------------------------------------------------
public void Initialize(FdoCache cache, IHelpTopicProvider helpTopicProvider, int wsCurrent)
{
m_helpTopicProvider = helpTopicProvider;
m_ws = wsCurrent;
int iSel = 0;
foreach (var ws in cache.ServiceLocator.WritingSystems.CurrentVernacularWritingSystems)
{
m_cbWritingSystems.Items.Add(ws);
if (ws.Handle == wsCurrent)
iSel = m_cbWritingSystems.Items.Count - 1;
}
m_cbWritingSystems.SelectedIndex = iSel;
helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile;
helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic));
helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
}
示例12: EditMorphBreaksDlg
public EditMorphBreaksDlg(IHelpTopicProvider helpTopicProvider)
{
m_helpTopicProvider = helpTopicProvider;
//
// Required for Windows Form Designer support
//
InitializeComponent();
AccessibleNameCreator.AddNames(this);
AccessibleName = GetType().Name;
if (!Application.RenderWithVisualStyles)
m_txtMorphs.BorderStyle = BorderStyle.FixedSingle;
m_helpProvider = new HelpProvider {HelpNamespace = helpTopicProvider.HelpFile};
m_helpProvider.SetHelpKeyword(this, helpTopicProvider.GetHelpString(ksHelpTopic));
m_helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
}
示例13: ConfigureWritingSystemsDlg
/// <summary>
/// Initializes a new instance of the <see cref="ConfigureWritingSystemsDlg"/> class.
/// </summary>
/// <param name="allWss">All writing systems to display.</param>
/// <param name="selectedWss">The selected writing systems.</param>
/// <param name="helpTopicProvider">The help topic provider.</param>
public ConfigureWritingSystemsDlg(IEnumerable<IWritingSystem> allWss, IEnumerable<IWritingSystem> selectedWss,
IHelpTopicProvider helpTopicProvider)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
foreach (IWritingSystem curWs in allWss)
m_wsListBox.Items.Add(curWs, selectedWss.Contains(curWs));
m_wsListBox.SelectedIndex = 0;
m_helpTopicProvider = helpTopicProvider;
if (m_helpTopicProvider != null) // m_helpTopicProvider could be null for testing
{
m_helpProvider = new HelpProvider();
m_helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile;
m_helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(HelpTopic));
m_helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
}
}
示例14: SetDlgInfo
public void SetDlgInfo(FdoCache cache, Mediator mediator, ComplexConcTagNode node)
{
m_cache = cache;
m_mediator = mediator;
m_node = node;
m_tagComboBox.WritingSystemFactory = m_cache.LanguageWritingSystemFactoryAccessor;
m_posPopupTreeManager = new PossibilityComboController(m_tagComboBox,
m_cache,
m_cache.LanguageProject.TextMarkupTagsOA,
m_cache.ServiceLocator.WritingSystems.DefaultAnalysisWritingSystem.Handle,
false,
m_mediator,
(Form) m_mediator.PropertyTable.GetValue("window"));
m_posPopupTreeManager.LoadPopupTree(m_node.Tag != null ? m_node.Tag.Hvo : 0);
m_helpTopicProvider = m_mediator.HelpTopicProvider;
m_helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile;
m_helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic));
m_helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
}
示例15: SimpleMatchDlg
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="T:SimpleMatchDlg"/> class.
/// </summary>
/// <param name="wsf">The WSF.</param>
/// <param name="helpTopicProvider">The help topic provider.</param>
/// <param name="ws">The ws.</param>
/// <param name="ss">The ss.</param>
/// <param name="cache"></param>
/// ------------------------------------------------------------------------------------
public SimpleMatchDlg(ILgWritingSystemFactory wsf, IHelpTopicProvider helpTopicProvider,
int ws, IVwStylesheet ss, FdoCache cache)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
m_cache = cache;
// We do this outside the designer-controlled code because it does funny things
// to FwTextBoxes, owing to the need for a writing system factory, and some
// properties it should not persist but I can't persuade it not to.
this.m_textBox = new FwTextBox();
this.m_textBox.WritingSystemFactory = wsf; // set ASAP.
this.m_textBox.WritingSystemCode = ws;
this.m_textBox.StyleSheet = ss; // before setting text, otherwise it gets confused about height needed.
this.m_textBox.Location = new System.Drawing.Point(8, 24);
this.m_textBox.Name = "m_textBox";
this.m_textBox.Size = new System.Drawing.Size(450, 32);
this.m_textBox.TabIndex = 0;
this.m_textBox.Text = "";
this.Controls.Add(this.m_textBox);
AccessibleName = "SimpleMatchDlg";
m_helpTopicProvider = helpTopicProvider;
regexContextMenu = new RegexHelperMenu(m_textBox, m_helpTopicProvider);
m_ivwpattern = VwPatternClass.Create();
helpProvider = new HelpProvider();
helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile;
helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic));
helpProvider.SetHelpNavigator(this, HelpNavigator.Topic);
foreach (Control control in Controls)
control.Click += new EventHandler(control_Click);
}