/// <summary>
        /// Handles the click event of the Datasource "..." button
        /// </summary>
        /// <param name="sender">Object that fired the event</param>
        /// <param name="e">.NET supplied event parameters</param>
        protected override void btnDataSource_Click(object sender, EventArgs e)
        {
            CommentLegalDialog commentLegalValuesDialog = new CommentLegalDialog((TableBasedDropDownField)this.Field, this.MainForm, txtFieldName.Text, this.page);
            DialogResult       result = commentLegalValuesDialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                if (!((string.IsNullOrEmpty(commentLegalValuesDialog.SourceTableName) && string.IsNullOrEmpty(commentLegalValuesDialog.TextColumnName))))
                {
                    txtDataSource.Text = commentLegalValuesDialog.SourceTableName + " :: " + commentLegalValuesDialog.TextColumnName;
                }
                else
                {
                    txtDataSource.Text    = string.Empty;
                    field.SourceTableName = string.Empty;
                    field.TextColumnName  = string.Empty;
                }

                this.sourceTableName = commentLegalValuesDialog.SourceTableName;
                this.textColumnName  = commentLegalValuesDialog.TextColumnName;

                btnOk.Enabled = true;
            }
        }
        /// <summary>
        /// Handles the click event of the Datasource "..." button
        /// </summary>
        /// <param name="sender">Object that fired the event</param>
        /// <param name="e">.NET supplied event parameters</param>
        protected override void btnDataSource_Click(object sender, EventArgs e)
        {
            CommentLegalDialog commentLegalValuesDialog = new CommentLegalDialog((TableBasedDropDownField)this.Field, this.MainForm, txtFieldName.Text, this.page);
            DialogResult result = commentLegalValuesDialog.ShowDialog();
            if (result == DialogResult.OK)
            {
                if (!((string.IsNullOrEmpty(commentLegalValuesDialog.SourceTableName) && string.IsNullOrEmpty(commentLegalValuesDialog.TextColumnName))))
                {
                    txtDataSource.Text = commentLegalValuesDialog.SourceTableName + " :: " + commentLegalValuesDialog.TextColumnName;
                }
                else
                {
                    txtDataSource.Text = string.Empty;
                    field.SourceTableName = string.Empty;
                    field.TextColumnName = string.Empty;
                }

                this.sourceTableName = commentLegalValuesDialog.SourceTableName;
                this.textColumnName = commentLegalValuesDialog.TextColumnName;

                btnOk.Enabled = true;
            }
        }