Edits one TopNByMetricUserSettings object.
Pass a TopNByMetricUserSettings object to the constructor. If the user edits the object, Form.ShowDialog() returns DialogResult.OK. Otherwise, Form.ShowDialog() returns DialogResult.Cancel and the object isn't modified.
Inheritance: ExcelTemplateForm
コード例 #1
0
        TryEditTopNByMetricUserSettings
        (
            TopNByMetricUserSettings oTopNByMetricUserSettings
        )
        {
            Debug.Assert(oTopNByMetricUserSettings != null);
            AssertValid();

            TopNByMetricUserSettingsDialog oTopNByMetricUserSettingsDialog =
                new TopNByMetricUserSettingsDialog(
                    oTopNByMetricUserSettings, m_oWorkbook);

            return(oTopNByMetricUserSettingsDialog.ShowDialog() ==
                   DialogResult.OK);
        }
    TryEditTopNByMetricUserSettings
    (
        TopNByMetricUserSettings oTopNByMetricUserSettings
    )
    {
        Debug.Assert(oTopNByMetricUserSettings != null);
        AssertValid();

        TopNByMetricUserSettingsDialog oTopNByMetricUserSettingsDialog =
            new TopNByMetricUserSettingsDialog(
                oTopNByMetricUserSettings, m_oWorkbook);

        return (oTopNByMetricUserSettingsDialog.ShowDialog() ==
            DialogResult.OK);
    }