Smrf.NodeXL.ExcelTemplate.ReadabilityMetricsDialog.ReadabilityMetricsDialog C# (CSharp) Method

ReadabilityMetricsDialog() public method

Initializes a new instance of the class.
public ReadabilityMetricsDialog ( NodeXLControl nodeXLControl, Microsoft workbook ) : System
nodeXLControl NodeXLControl /// NodeXLControl containing the graph. ///
workbook Microsoft /// Workbook containing the graph data. ///
return System
    public ReadabilityMetricsDialog
    (
        NodeXLControl nodeXLControl,
        Microsoft.Office.Interop.Excel.Workbook workbook
    )
    {
        InitializeComponent();

        m_oNodeXLControl = nodeXLControl;
        m_oWorkbook = workbook;
        m_oReadabilityMetricUserSettings = new ReadabilityMetricUserSettings();

        // Instantiate an object that saves and retrieves the user settings for
        // this dialog.  Note that the object automatically saves the settings
        // when the form closes.

        m_oReadabilityMetricsDialogUserSettings =
            new ReadabilityMetricsDialogUserSettings(this);

        DoDataExchange(false);

        m_oNodeXLControl.VerticesMoved +=
            new VerticesMovedEventHandler(this.OnVerticesMoved);

        m_oNodeXLControl.GraphLaidOut +=
            new AsyncCompletedEventHandler(this.OnGraphLaidOut);

        AssertValid();
    }