-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHelpClass.cs
24 lines (22 loc) · 852 Bytes
/
HelpClass.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//-----------------------------------------------------------------------
// <copyright file="HelpClass.cs">
// Copyright (c) 2016, 2020 Kent P. McKinney
// Released under the terms of the MIT License
// </copyright>
//-----------------------------------------------------------------------
namespace VehicleInformationLookupTool
{
using System.Windows.Forms;
/// <summary>
/// Wrapper for the Windows Forms Help class
/// </summary>
public static class HelpClass
{
/// <summary>
/// Open the help file to the specified topic
/// </summary>
/// <param name="topic"> The name of the HTML file in the CHM which contains the specified topic </param>
public static void ShowTopic(string topic) =>
Help.ShowHelp(null, "help.chm", HelpNavigator.Topic, topic);
}
}