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

OnLoad() protected method

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

        base.OnLoad(e);

        if (lbxSourceWorkbook.Items.Count == 0)
        {
            this.ShowWarning(ExcelWorkbookListBox.NoOtherWorkbooks);
            this.Close();
        }
        else
        {
            lbxSourceWorkbook.SelectedIndex = 0;
        }
    }