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