src/Misc/EFTools/EntityDesign/UI/Views/Dialogs/NewFunctionImportDialog.cs
// <summary>
//     Set scalar-return-type and entity-return-type combo boxes not enabled/enabled state.
// </summary>
Set scalar-return-type and entity-return-type combo boxes not enabled/enabled state.
Set scalar - return - type and entity - return - type combo boxes not enabled / enabled state .
private void UpdateReturnTypeComboBoxesState()
        {
            scalarTypeReturnComboBox.Enabled = scalarTypeReturnButton.Checked;
            complexTypeReturnComboBox.Enabled = complexTypeReturnButton.Checked && _complexTypeFeatureState.IsEnabled();
            updateComplexTypeButton.Enabled = complexTypeReturnComboBox.Enabled && (complexTypeReturnComboBox.SelectedItem != null)
                                              && (storedProcComboBox.SelectedItem != null);
            entityTypeReturnComboBox.Enabled = entityTypeReturnButton.Checked;
            emptyReturnTypeButton.Font = functionImportNameTextBox.Font;
            scalarTypeReturnButton.Font = functionImportNameTextBox.Font;
            complexTypeReturnButton.Font = functionImportNameTextBox.Font;
            entityTypeReturnButton.Font = functionImportNameTextBox.Font;
            complexTypeReturnButton.Enabled = _complexTypeFeatureState.IsEnabled();
        }
private void UpdateReturnTypeComboBoxesState ( ) { scalarTypeReturnComboBox . Enabled = scalarTypeReturnButton . Checked ; complexTypeReturnComboBox . Enabled = complexTypeReturnButton . Checked && _complexTypeFeatureState . IsEnabled ( ) ; updateComplexTypeButton . Enabled = complexTypeReturnComboBox . Enabled && ( complexTypeReturnComboBox . SelectedItem != null ) && ( storedProcComboBox . SelectedItem != null ) ; entityTypeReturnComboBox . Enabled = entityTypeReturnButton . Checked ; emptyReturnTypeButton . Font = functionImportNameTextBox . Font ; scalarTypeReturnButton . Font = functionImportNameTextBox . Font ; complexTypeReturnButton . Font = functionImportNameTextBox . Font ; entityTypeReturnButton . Font = functionImportNameTextBox . Font ; complexTypeReturnButton . Enabled = _complexTypeFeatureState . IsEnabled ( ) ; }
Set scalar-return-type and entity-return-type combo boxes not enabled/enabled state.
Set scalar - return - type and entity - return - type combo boxes not enabled / enabled state .
// Only enable this control, if the radio button is selected and function import returning complex type feature is supported. // Only enable this control if complexTypeReturnComboBox is enabled, the selected item is not null, and stored procedure combo box selected item is not null