示例#1
0
 /// <summary>
 /// Event delegate method fired when the <see cref="AdvancedOptionsButton"/> button is clicked.
 /// </summary>
 /// <param name="sender">Sender object.</param>
 /// <param name="e">Event arguments.</param>
 private void AdvancedOptionsButton_Click(object sender, EventArgs e)
 {
     using (var optionsDialog = new ImportAdvancedOptionsDialog())
     {
         optionsDialog.ShowDialog();
         SetControlsEnabledState();
     }
 }
 /// <summary>
 /// Event delegate method fired when the <see cref="AdvancedOptionsButton"/> button is clicked.
 /// </summary>
 /// <param name="sender">Sender object.</param>
 /// <param name="e">Event arguments.</param>
 private void AdvancedOptionsButton_Click(object sender, EventArgs e)
 {
     using (var optionsDialog = new ImportAdvancedOptionsDialog())
     {
         optionsDialog.ShowDialog();
         AddSummaryFieldsCheckBox.Checked = Settings.Default.ImportCreateExcelTable && AddSummaryFieldsCheckBox.Checked;
         AddSummaryFieldsCheckBox.Enabled = Settings.Default.ImportCreateExcelTable;
     }
 }
示例#3
0
        /// <summary>
        /// Event delegate method fired when the <see cref="AdvancedOptionsButton"/> button is clicked.
        /// </summary>
        /// <param name="sender">Sender object.</param>
        /// <param name="e">Event arguments.</param>
        private void AdvancedOptionsButton_Click(object sender, EventArgs e)
        {
            using (var optionsDialog = new ImportAdvancedOptionsDialog())
            {
                optionsDialog.ShowDialog();
                if (optionsDialog.ParentFormRequiresRefresh)
                {
                    FillPreviewGrid();
                }

                AddSummaryFieldsCheckBox.Checked = Settings.Default.ImportCreateExcelTable && AddSummaryFieldsCheckBox.Checked;
                AddSummaryFieldsCheckBox.Enabled = Settings.Default.ImportCreateExcelTable;
                RecalculateRowsToMaximum();
            }
        }