27 lines
No EOL
769 B
C#
27 lines
No EOL
769 B
C#
using System.Diagnostics;
|
|
using JD.Application.Program;
|
|
using TeaBox;
|
|
|
|
namespace JD.Application.View.Actions
|
|
{
|
|
/// <summary>
|
|
/// Shows the user help manual when executing the action
|
|
/// </summary>
|
|
public class ShowHelpHandler : ActionHandler
|
|
{
|
|
/// <summary>
|
|
/// Execute the action.
|
|
/// </summary>
|
|
public override void Execute(ActionExecutionContext context)
|
|
{
|
|
if (!string.IsNullOrEmpty(ProgramIdentity.Instance.UserDocumentationFile))
|
|
{
|
|
Process.Start(ProgramIdentity.Instance.UserDocumentationFile);
|
|
}
|
|
else
|
|
{
|
|
MessageService.MessageService.ShowMessage("There is no documentation yet.");
|
|
}
|
|
}
|
|
}
|
|
} |