Smrf.NodeXL.ExcelTemplate.AnalyzeEmailNetworkDialog.OnLoad C# (CSharp) Method

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void
    OnLoad
    (
        EventArgs e
    )
    {
        AssertValid();

        base.OnLoad(e);

        // Get the required edge table before the user does anything in the
        // dialog.

        EdgeWorksheetReader oEdgeWorksheetReader = new EdgeWorksheetReader();

        try
        {
            m_oEdgeTable = oEdgeWorksheetReader.GetEdgeTable(m_oWorkbook);
        }
        catch (Exception oException)
        {
            // The edge table couldn't be found.  Tell the user and close the
            // dialog.

            ErrorUtil.OnException(oException);

            this.Close();

            return;
        }
    }