//************************************************************************* // Constructor: SelectSubgraphsDialog() // /// <overloads> /// Initializes a new instance of the <see cref="SelectSubgraphsDialog" /> /// class. /// </overloads> /// /// <summary> /// Initializes a new instance of the <see cref="SelectSubgraphsDialog" /> /// class with a NodeXLControl. /// </summary> /// /// <param name="nodeXLControl"> /// The NodeXLControl whose subgraphs should be selected. /// </param> /// /// <param name="clickedVertex"> /// Vertex that was clicked in the graph, or null if no vertex was clicked. /// </param> //************************************************************************* public SelectSubgraphsDialog ( NodeXLControl nodeXLControl, IVertex clickedVertex ) : this() { // 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_oSelectSubgraphsDialogUserSettings = new SelectSubgraphsDialogUserSettings(this); m_oNodeXLControl = nodeXLControl; m_oClickedVertex = clickedVertex; m_aoInitiallySelectedVertices = nodeXLControl.SelectedVertices.ToArray(); DoDataExchange(false); AssertValid(); }