示例#1
0
        //*************************************************************************
        //  Constructor: ColorColumnAutoFillUserSettingsDialog()
        //
        /// <summary>
        /// Initializes a new instance of the <see
        /// cref="ColorColumnAutoFillUserSettingsDialog" /> class.
        /// </summary>
        ///
        /// <param name="colorColumnAutoFillUserSettings">
        /// Object to edit.
        /// </param>
        ///
        /// <param name="dialogCaption">
        /// Dialog caption.
        /// </param>
        //*************************************************************************

        public ColorColumnAutoFillUserSettingsDialog
        (
            ColorColumnAutoFillUserSettings colorColumnAutoFillUserSettings,
            String dialogCaption
        )
        {
            Debug.Assert(colorColumnAutoFillUserSettings != null);
            Debug.Assert(!String.IsNullOrEmpty(dialogCaption));

            InitializeComponent();

            m_oColorColumnAutoFillUserSettings = colorColumnAutoFillUserSettings;

            // Instantiate an object that saves and retrieves the position of this
            // dialog.  Note that the object automatically saves the settings when
            // the form closes.

            m_oColorColumnAutoFillUserSettingsDialogUserSettings =
                new ColorColumnAutoFillUserSettingsDialogUserSettings(this);

            this.Text = dialogCaption;

            // The label that explains categories, which is shown only when
            // "Categories" is selected in the cbxSourceColumnContainsNumbers
            // ComboBox, is shown in the wrong place in the designer to make it
            // readable.  Move it to its correct location.

            lblSourceColumnContainsCategories.Location = new Point(12, 70);

            cbxSourceColumnContainsNumbers.PopulateWithObjectsAndText(
                false, "Categories", true, "Numbers"
                );

            lnkOutliersAndLogs.Tag = AutoFillWorkbookDialog.OutliersAndLogsMessage;

            DoDataExchange(false);

            UpdateColorGradient();

            AssertValid();
        }
    //*************************************************************************
    //  Constructor: ColorColumnAutoFillUserSettingsDialog()
    //
    /// <summary>
    /// Initializes a new instance of the <see
    /// cref="ColorColumnAutoFillUserSettingsDialog" /> class.
    /// </summary>
    ///
    /// <param name="colorColumnAutoFillUserSettings">
    /// Object to edit.
    /// </param>
    ///
    /// <param name="dialogCaption">
    /// Dialog caption.
    /// </param>
    //*************************************************************************

    public ColorColumnAutoFillUserSettingsDialog
    (
        ColorColumnAutoFillUserSettings colorColumnAutoFillUserSettings,
        String dialogCaption
    )
    {
        Debug.Assert(colorColumnAutoFillUserSettings != null);
        Debug.Assert( !String.IsNullOrEmpty(dialogCaption) );

        InitializeComponent();

        m_oColorColumnAutoFillUserSettings = colorColumnAutoFillUserSettings;

        // Instantiate an object that saves and retrieves the position of this
        // dialog.  Note that the object automatically saves the settings when
        // the form closes.

        m_oColorColumnAutoFillUserSettingsDialogUserSettings =
            new ColorColumnAutoFillUserSettingsDialogUserSettings(this);

        this.Text = dialogCaption;

        // The label that explains categories, which is shown only when
        // "Categories" is selected in the cbxSourceColumnContainsNumbers
        // ComboBox, is shown in the wrong place in the designer to make it
        // readable.  Move it to its correct location.

        lblSourceColumnContainsCategories.Location = new Point(12, 70);

        cbxSourceColumnContainsNumbers.PopulateWithObjectsAndText(
            false, "Categories", true, "Numbers"
            );

        lnkOutliersAndLogs.Tag = AutoFillWorkbookDialog.OutliersAndLogsMessage;

        DoDataExchange(false);

        UpdateColorGradient();

        AssertValid();
    }