Smrf.NodeXL.ExcelTemplate.ApplicationUtil.OpenHelp C# (CSharp) Method

OpenHelp() public static method

public static OpenHelp ( ) : void
return void
    OpenHelp()
    {
        if (m_oHelpProcess != null)
        {
            // The help window is already open.  Activate it.

            Win32Functions.SetForegroundWindow(
                m_oHelpProcess.MainWindowHandle);

            return;
        }

        // It's assumed that the build process placed a copy of the help file
        // in the application folder.

        m_oHelpProcess = Process.Start( Path.Combine(
            GetApplicationFolder(), HelpFileName) );

        m_oHelpProcess.EnableRaisingEvents = true;

        m_oHelpProcess.Exited += (Object, EventArgs) =>
        {
            m_oHelpProcess.Dispose();
            m_oHelpProcess = null;
        };
    }