Smrf.NodeXL.ExcelTemplate.CreateSubgraphImagesDialog.CreateSubgraphImagesDialog C# (CSharp) Method

CreateSubgraphImagesDialog() public method

Initializes a new instance of the class.
public CreateSubgraphImagesDialog ( DialogMode mode, Microsoft workbook, ICollection selectedVertexNames ) : System
mode DialogMode /// Indicates the mode in which the dialog is being used. ///
workbook Microsoft /// Workbook containing the graph data. If is /// , the workbook isn't used and this /// parameter must be null. ///
selectedVertexNames ICollection /// Collection of zero or more vertex names corresponding to the selected /// rows in the vertex worksheet. If is , the collection isn't used and this /// parameter must be null. ///
return System
    public CreateSubgraphImagesDialog
    (
        DialogMode mode,
        Microsoft.Office.Interop.Excel.Workbook workbook,
        ICollection<String> selectedVertexNames
    )
    {
        InitializeComponent();

        m_eMode = mode;
        m_oWorkbook = workbook;
        m_oSelectedVertexNames = selectedVertexNames;

        // 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_oCreateSubgraphImagesDialogUserSettings =
            new CreateSubgraphImagesDialogUserSettings(this);

        m_oSubgraphImageCreator = new SubgraphImageCreator();

        m_oSubgraphImageCreator.ImageCreationProgressChanged +=
            new ProgressChangedEventHandler(
                SubgraphImageCreator_ImageCreationProgressChanged);

        m_oSubgraphImageCreator.ImageCreationCompleted +=
            new RunWorkerCompletedEventHandler(
                SubgraphImageCreator_ImageCreationCompleted);

        m_eState = DialogState.Idle;

        DoDataExchange(false);

        AssertValid();
    }