//*************************************************************************
        //  Constructor: CreateSubgraphImagesDialog()
        //
        /// <summary>
        /// Initializes a new instance of the <see
        /// cref="CreateSubgraphImagesDialog" /> class.
        /// </summary>
        ///
        /// <param name="mode">
        /// Indicates the mode in which the dialog is being used.
        /// </param>
        ///
        /// <param name="workbook">
        /// Workbook containing the graph data.  If <paramref name="mode" /> is
        /// <see cref="DialogMode.EditOnly" />, the workbook isn't used and this
        /// parameter must be null.
        /// </param>
        ///
        /// <param name="selectedVertexNames">
        /// Collection of zero or more vertex names corresponding to the selected
        /// rows in the vertex worksheet.  If <paramref name="mode" /> is <see
        /// cref="DialogMode.EditOnly" />, the collection isn't used and this
        /// parameter must be null.
        /// </param>
        //*************************************************************************

        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();
        }
    //*************************************************************************
    //  Constructor: CreateSubgraphImagesDialog()
    //
    /// <summary>
    /// Initializes a new instance of the <see
    /// cref="CreateSubgraphImagesDialog" /> class.
    /// </summary>
    ///
    /// <param name="mode">
    /// Indicates the mode in which the dialog is being used.
    /// </param>
    ///
    /// <param name="workbook">
    /// Workbook containing the graph data.  If <paramref name="mode" /> is
    /// <see cref="DialogMode.EditOnly" />, the workbook isn't used and this
    /// parameter must be null.
    /// </param>
    ///
    /// <param name="selectedVertexNames">
    /// Collection of zero or more vertex names corresponding to the selected
    /// rows in the vertex worksheet.  If <paramref name="mode" /> is <see
    /// cref="DialogMode.EditOnly" />, the collection isn't used and this
    /// parameter must be null.
    /// </param>
    //*************************************************************************

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