//************************************************************************* // Method: Sheet1_Startup() // /// <summary> /// Handles the Startup event on the worksheet. /// </summary> /// /// <param name="sender"> /// Standard event argument. /// </param> /// /// <param name="e"> /// Standard event argument. /// </param> //************************************************************************* private void Sheet1_Startup( object sender, System.EventArgs e ) { // Create the object that does most of the work for this class. m_oSheets1And2Helper = new Sheets1And2Helper(this, this.Edges); Globals.ThisWorkbook.SetVisualAttribute2 += new SetVisualAttributeEventHandler( this.ThisWorkbook_SetVisualAttribute2); AssertValid(); }
//************************************************************************* // Method: Sheet2_Startup() // /// <summary> /// Handles the Startup event on the worksheet. /// </summary> /// /// <param name="sender"> /// Standard event argument. /// </param> /// /// <param name="e"> /// Standard event argument. /// </param> //************************************************************************* private void Sheet2_Startup( object sender, System.EventArgs e ) { ThisWorkbook oThisWorkbook = Globals.ThisWorkbook; oThisWorkbook.GraphLaidOut += new GraphLaidOutEventHandler( this.ThisWorkbook_GraphLaidOut); oThisWorkbook.VerticesMoved += new VerticesMovedEventHandler2( this.ThisWorkbook_VerticesMoved); oThisWorkbook.VertexAttributesEditedInGraph += new VertexAttributesEditedEventHandler( this.ThisWorkbook_VertexAttributesEditedInGraph); oThisWorkbook.SetVisualAttribute2 += new SetVisualAttributeEventHandler( this.ThisWorkbook_SetVisualAttribute2); // Create the object that does most of the work for this class. m_oSheets1And2Helper = new Sheets1And2Helper(this, this.Vertices); AssertValid(); }