diff --git a/Src/LexText/LexTextDll/HelpTopicPaths.resx b/Src/LexText/LexTextDll/HelpTopicPaths.resx
index bbb94d14e6..663ee8245e 100644
--- a/Src/LexText/LexTextDll/HelpTopicPaths.resx
+++ b/Src/LexText/LexTextDll/HelpTopicPaths.resx
@@ -275,6 +275,9 @@
User_Interface/Menus/Parser/Try_a_word.htm
+
+ User_Interface/Menus/Parser/MaxApps_dialog_box.htm
+
User_Interface/Field_Descriptions/Lexicon/Lexicon_Edit_fields/Entry_level_fields/Citation_Form_field.htm
diff --git a/Src/LexText/ParserUI/HCMaxCompoundRulesDlg.cs b/Src/LexText/ParserUI/HCMaxCompoundRulesDlg.cs
index 331d87f771..2fb225f0e4 100644
--- a/Src/LexText/ParserUI/HCMaxCompoundRulesDlg.cs
+++ b/Src/LexText/ParserUI/HCMaxCompoundRulesDlg.cs
@@ -1,6 +1,7 @@
// Copyright (c) 2025 SIL International
// This software is licensed under the LGPL, version 2.1 or later
// (http://www.gnu.org/licenses/lgpl-2.1.html)
+using SIL.FieldWorks.Common.FwUtils;
using SIL.LCModel;
using System;
using System.Data;
@@ -21,10 +22,12 @@ public partial class HCMaxCompoundRulesDlg : ParserParametersBase
private const string m_MaxApps = "MaxApps";
private const string m_Guid = "Guid";
private const string m_CompoundRules = "CompoundRules";
+ private const string HelpTopicID = "khtpHCMaxCompoundRules";
private XElement m_ParserParametersElem;
private DataGrid m_dataGrid;
private DataSet m_dsCompoundRules;
+ private IHelpTopicProvider m_helpTopicProvider;
public HCMaxCompoundRulesDlg()
{
@@ -34,13 +37,14 @@ public HCMaxCompoundRulesDlg()
///
/// Set up the dlg in preparation to showing it.
///
- public void SetDlgInfo(string title, string parserParameters, ILcmOwningSequence compoundRules)
+ public void SetDlgInfo(string title, string parserParameters, ILcmOwningSequence compoundRules, IHelpTopicProvider helpTopicProvider)
{
CheckDisposed();
XmlRep = parserParameters;
m_ParserParametersElem = XElement.Parse(parserParameters);
Text = title;
+ m_helpTopicProvider = helpTopicProvider;
m_dsCompoundRules = new DataSet { DataSetName = m_CompoundRules };
@@ -151,7 +155,7 @@ private XElement CreateCompoundRulesElementToStore(XElement elem)
private void btnHelp_Click(object sender, EventArgs e)
{
- MessageBox.Show("Help clicked");
+ ShowHelp.ShowHelpTopic(m_helpTopicProvider, HelpTopicID);
}
protected void EnforceValidValue(XElement elem, string item, int min, int max, bool useMinIfZero)
diff --git a/Src/LexText/ParserUI/ParserParametersDlg.cs b/Src/LexText/ParserUI/ParserParametersDlg.cs
index 208e5a2779..0c6bd9f8ba 100644
--- a/Src/LexText/ParserUI/ParserParametersDlg.cs
+++ b/Src/LexText/ParserUI/ParserParametersDlg.cs
@@ -215,7 +215,7 @@ private void btnHCMaxCompoundRuleApps_Click(object sender, EventArgs e)
{
// create and show compound rule max apps dialog
var dlg = new HCMaxCompoundRulesDlg();
- dlg.SetDlgInfo("MaxApps", XmlRep, m_compoundRules);
+ dlg.SetDlgInfo("MaxApps", XmlRep, m_compoundRules, m_helpTopicProvider);
dlg.ShowDialog(this);
XmlRep = dlg.XmlRep;
}