public void HandleMessage(HelpRequestedMessage message) { if (message == null) { return; } var helpName = Settings.Default.HelpDocumentName; if (!String.IsNullOrWhiteSpace(helpName) && helpName.EndsWith("chm", true, CultureInfo.InvariantCulture)) { try { Process.Start(helpName); } catch (FileNotFoundException) { Trace.TraceError(ResourceHelper.FindText("CannotFindHelpFile", helpName)); } } else { Trace.TraceError(ResourceHelper.FindText("InvalidHelpFileType", helpName)); } }
public void HandleMessage(HelpRequestedMessage message) { if (message == null) return; var helpName = Settings.Default.HelpDocumentName; if (!String.IsNullOrWhiteSpace(helpName) && helpName.EndsWith("chm", true, CultureInfo.InvariantCulture)) { try { Process.Start(helpName); } catch (FileNotFoundException) { Trace.TraceError(ResourceHelper.FindText("CannotFindHelpFile", helpName)); } } else { Trace.TraceError(ResourceHelper.FindText("InvalidHelpFileType", helpName)); } }