Exemplo n.º 1
0
        btnSaveGraphImageFile_Click
        (
            object sender,
            EventArgs e
        )
        {
            AssertValid();

            AutomatedGraphImageUserSettings oAutomatedGraphImageUserSettings =
                new AutomatedGraphImageUserSettings();

            AutomatedGraphImageUserSettingsDialog
                oAutomatedGraphImageUserSettingsDialog =
                new AutomatedGraphImageUserSettingsDialog(
                    oAutomatedGraphImageUserSettings);

            if (oAutomatedGraphImageUserSettingsDialog.ShowDialog() ==
                DialogResult.OK)
            {
                oAutomatedGraphImageUserSettings.Save();
            }
        }
Exemplo n.º 2
0
        //*************************************************************************
        //  Method: btnSaveGraphImageFile_Click()
        //
        /// <summary>
        /// Handles the Click event on the btnSaveGraphImageFile button.
        /// </summary>
        ///
        /// <param name="sender">
        /// Standard event argument.
        /// </param>
        ///
        /// <param name="e">
        /// Standard event argument.
        /// </param>
        //*************************************************************************
        private void btnSaveGraphImageFile_Click(
            object sender,
            EventArgs e
            )
        {
            AssertValid();

            AutomatedGraphImageUserSettings oAutomatedGraphImageUserSettings =
            new AutomatedGraphImageUserSettings();

            AutomatedGraphImageUserSettingsDialog
            oAutomatedGraphImageUserSettingsDialog =
            new AutomatedGraphImageUserSettingsDialog(
                oAutomatedGraphImageUserSettings);

            if (oAutomatedGraphImageUserSettingsDialog.ShowDialog() ==
            DialogResult.OK)
            {
            oAutomatedGraphImageUserSettings.Save();
            }
        }