src/Misc/EFTools/EntityDesign/UI/Views/Dialogs/NewFunctionImportDialog.cs
// <summary>
//     Create New Complex Type button click event handler
// </summary>
Create New Complex Type button click event handler
Create New Complex Type button click event handler
private void createNewComplexTypeButton_Click(object sender, EventArgs args)
        {
            if (_updateSelectedComplexType)
            {
                _updateSelectedComplexType = false;
                UpdateComplexTypeList(Schema.Columns);
            }
            updateComplexTypeButton.Enabled = false;
            complexTypeReturnComboBox.SelectedItem = null;
            complexTypeReturnButton.Checked = true;
            complexTypeReturnButton.Font = new Font(complexTypeReturnButton.Font, complexTypeReturnButton.Font.Style | FontStyle.Bold);
            SetComplexTypeReturnComboBoxStyle(true);
            complexTypeReturnComboBox.Focus();
            var complexTypeBaseName = (string.IsNullOrEmpty(FunctionImportName) ? Function.LocalName.Value : FunctionImportName);
            var complexTypeName = GetComplexTypeName(complexTypeBaseName);
            complexTypeReturnComboBox.Text = complexTypeName;
            CheckOkButtonEnabled();
        }
private void createNewComplexTypeButton_Click ( object sender , EventArgs args ) { if ( _updateSelectedComplexType ) { _updateSelectedComplexType = false ; UpdateComplexTypeList ( Schema . Columns ) ; } updateComplexTypeButton . Enabled = false ; complexTypeReturnComboBox . SelectedItem = null ; complexTypeReturnButton . Checked = true ; complexTypeReturnButton . Font = new Font ( complexTypeReturnButton . Font , complexTypeReturnButton . Font . Style | FontStyle . Bold ) ; SetComplexTypeReturnComboBoxStyle ( true ) ; complexTypeReturnComboBox . Focus ( ) ; var complexTypeBaseName = ( string . IsNullOrEmpty ( FunctionImportName ) ? Function . LocalName . Value : FunctionImportName ) ; var complexTypeName = GetComplexTypeName ( complexTypeBaseName ) ; complexTypeReturnComboBox . Text = complexTypeName ; CheckOkButtonEnabled ( ) ; }
Create New Complex Type button click event handler
Create New Complex Type button click event handler
// need to reset the return type list view to not show the diff between the columns schema and function import return type properties. // Need to update the return type view list. // Clears out any selected item in complex type combo box // Select complex type radio button and set the font to bold for visual effect. // Set the complex combo box style to be writable so the user can enter a new complex type name. // Calculate the new complex type name.
sender
object
args
EventArgs