11// Copyright (c) 2025 SIL International
22// This software is licensed under the LGPL, version 2.1 or later
33// (http://www.gnu.org/licenses/lgpl-2.1.html)
4+ using SIL . FieldWorks . Common . FwUtils ;
45using SIL . LCModel ;
56using System ;
67using System . Data ;
@@ -21,10 +22,12 @@ public partial class HCMaxCompoundRulesDlg : ParserParametersBase
2122 private const string m_MaxApps = "MaxApps" ;
2223 private const string m_Guid = "Guid" ;
2324 private const string m_CompoundRules = "CompoundRules" ;
25+ private const string HelpTopicID = "khtpHCMaxCompoundRules" ;
2426 private XElement m_ParserParametersElem ;
2527
2628 private DataGrid m_dataGrid ;
2729 private DataSet m_dsCompoundRules ;
30+ private IHelpTopicProvider m_helpTopicProvider ;
2831
2932 public HCMaxCompoundRulesDlg ( )
3033 {
@@ -34,13 +37,14 @@ public HCMaxCompoundRulesDlg()
3437 /// <summary>
3538 /// Set up the dlg in preparation to showing it.
3639 /// </summary>
37- public void SetDlgInfo ( string title , string parserParameters , ILcmOwningSequence < IMoCompoundRule > compoundRules )
40+ public void SetDlgInfo ( string title , string parserParameters , ILcmOwningSequence < IMoCompoundRule > compoundRules , IHelpTopicProvider helpTopicProvider )
3841 {
3942 CheckDisposed ( ) ;
4043
4144 XmlRep = parserParameters ;
4245 m_ParserParametersElem = XElement . Parse ( parserParameters ) ;
4346 Text = title ;
47+ m_helpTopicProvider = helpTopicProvider ;
4448
4549 m_dsCompoundRules = new DataSet { DataSetName = m_CompoundRules } ;
4650
@@ -151,7 +155,7 @@ private XElement CreateCompoundRulesElementToStore(XElement elem)
151155
152156 private void btnHelp_Click ( object sender , EventArgs e )
153157 {
154- MessageBox . Show ( "Help clicked" ) ;
158+ ShowHelp . ShowHelpTopic ( m_helpTopicProvider , HelpTopicID ) ;
155159 }
156160
157161 protected void EnforceValidValue ( XElement elem , string item , int min , int max , bool useMinIfZero )
0 commit comments