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

GraphMetricsAggregator_AggregationCompleted() private method

private GraphMetricsAggregator_AggregationCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
sender object
e System.ComponentModel.RunWorkerCompletedEventArgs
return void
    GraphMetricsAggregator_AggregationCompleted
    (
        object sender,
        RunWorkerCompletedEventArgs e
    )
    {
        AssertValid();

        EnableControls();

        if (e.Cancelled)
        {
        }
        else if (e.Error != null)
        {
            ErrorUtil.OnException(e.Error);
            slStatusLabel.Text = String.Empty;
        }
        else
        {
            // The final status message is a summary of what was done.  Show it
            // in a message box in addition to the StatusLabel.

            this.ShowInformation(slStatusLabel.Text);
            this.Close();
        }
    }