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

AggregateGraphMetricsDialog() public method

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

        // 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_oAggregateGraphMetricsDialogUserSettings =
            new AggregateGraphMetricsDialogUserSettings(this);

        m_oWorkbook = workbook;

        m_oGraphMetricsAggregator = new GraphMetricsAggregator();

        m_oGraphMetricsAggregator.AggregationProgressChanged +=
            new ProgressChangedEventHandler(
                GraphMetricsAggregator_AggregationProgressChanged);

        m_oGraphMetricsAggregator.AggregationCompleted +=
            new RunWorkerCompletedEventHandler(
                GraphMetricsAggregator_AggregationCompleted);

        DoDataExchange(false);

        AssertValid();
    }