//************************************************************************* // Constructor: AnalyzeEmailNetworkDialog() // /// <summary> /// Initializes a new instance of the <see /// cref="AnalyzeEmailNetworkDialog" /> class. /// </summary> /// /// <param name="workbook"> /// Workbook containing the graph data. /// </param> /// /// <param name="clearTablesFirst"> /// true if the NodeXL tables in <paramref name="workbook" /> should be /// cleared first. /// </param> //************************************************************************* public AnalyzeEmailNetworkDialog ( Microsoft.Office.Interop.Excel.Workbook workbook, Boolean clearTablesFirst ) { Debug.Assert(workbook != null); InitializeComponent(); // Instantiate an object that retrieves and saves the user settings for // this dialog. Note that the object automatically saves the settings // when the form closes. m_oAnalyzeEmailNetworkDialogUserSettings = new AnalyzeEmailNetworkDialogUserSettings(this); m_oWorkbook = workbook; m_bClearTablesFirst = clearTablesFirst; m_oEmailNetworkAnalyzer = new EmailNetworkAnalyzer(); m_oEmailNetworkAnalyzer.AnalysisCompleted += new RunWorkerCompletedEventHandler( EmailNetworkAnalyzer_AnalysisCompleted); m_oEdgeTable = null; DoDataExchange(false); AssertValid(); }