Aggregates the overall metrics from a folder full of NodeXL workbooks into a new Excel workbook.
Call AggregateGraphMetricsAsync to aggregate the overall metrics. Call CancelAsync to stop the aggregation. Handle the AggregationProgressChanged and events to monitor the progress and completion of the aggregation.
Inheritance: Object
コード例 #1
0
    //*************************************************************************
    //  Constructor: AggregateGraphMetricsDialog()
    //
    /// <summary>
    /// Initializes a new instance of the <see
    /// cref="AggregateGraphMetricsDialog" /> class.
    /// </summary>
    ///
    /// <param name="workbook">
    /// Workbook containing the graph data.
    /// </param>
    //*************************************************************************

    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();
    }
コード例 #2
0
        //*************************************************************************
        //  Constructor: AggregateGraphMetricsDialog()
        //
        /// <summary>
        /// Initializes a new instance of the <see
        /// cref="AggregateGraphMetricsDialog" /> class.
        /// </summary>
        ///
        /// <param name="workbook">
        /// Workbook containing the graph data.
        /// </param>
        //*************************************************************************

        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();
        }