+ showHelp (event.GetId());
+}
+
+void
+MainFrame::OnHelpContents (wxCommandEvent& event)
+{
+ showHelp (event.GetId());
+}
+
+void
+MainFrame::showHelp (int commandID)
+{
+ m_help.LoadFile();
+
+ switch (commandID) {
+ case MAINMENU_HELP_CONTENTS:
+ m_help.DisplayContents ();
+ break;
+ case MAINMENU_HELP_TOPICS:
+ m_help.DisplaySection (introduction);
+ break;
+
+ default:
+ *getLog() << "Unknown help command # " << commandID << "\n";
+ break;
+ }