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