public override bool OnNext()
        {
            SqlDataSourceQuery        selectQuery = new SqlDataSourceQuery(this._selectQuery.Command, this._selectQuery.CommandType, this._parameterEditorUserControl.GetParameters());
            SqlDataSourceSummaryPanel nextPanel   = base.NextPanel as SqlDataSourceSummaryPanel;

            if (nextPanel == null)
            {
                nextPanel      = ((SqlDataSourceWizardForm)base.ParentWizard).GetSummaryPanel();
                base.NextPanel = nextPanel;
            }
            nextPanel.SetQueries(this._dataConnection, selectQuery, this._insertQuery, this._updateQuery, this._deleteQuery);
            return(true);
        }
        public override bool OnNext()
        {
            SqlDataSourceQuery selectQuery = this._selectCommandEditor.GetQuery();
            SqlDataSourceQuery query       = this._insertCommandEditor.GetQuery();
            SqlDataSourceQuery updateQuery = this._updateCommandEditor.GetQuery();
            SqlDataSourceQuery deleteQuery = this._deleteCommandEditor.GetQuery();

            if (((selectQuery == null) || (query == null)) || ((updateQuery == null) || (deleteQuery == null)))
            {
                return(false);
            }
            int num = 0;

            foreach (Parameter parameter in selectQuery.Parameters)
            {
                if ((parameter.Direction == ParameterDirection.Input) || (parameter.Direction == ParameterDirection.InputOutput))
                {
                    num++;
                }
            }
            if (num == 0)
            {
                SqlDataSourceSummaryPanel summaryPanel = base.NextPanel as SqlDataSourceSummaryPanel;
                if (summaryPanel == null)
                {
                    summaryPanel   = ((SqlDataSourceWizardForm)base.ParentWizard).GetSummaryPanel();
                    base.NextPanel = summaryPanel;
                }
                summaryPanel.SetQueries(this._dataConnection, selectQuery, query, updateQuery, deleteQuery);
                return(true);
            }
            SqlDataSourceConfigureParametersPanel nextPanel = base.NextPanel as SqlDataSourceConfigureParametersPanel;

            if (nextPanel == null)
            {
                nextPanel      = ((SqlDataSourceWizardForm)base.ParentWizard).GetConfigureParametersPanel();
                base.NextPanel = nextPanel;
                SqlDataSource component        = (SqlDataSource)this._sqlDataSourceDesigner.Component;
                Parameter[]   selectParameters = new Parameter[component.SelectParameters.Count];
                for (int i = 0; i < component.SelectParameters.Count; i++)
                {
                    Parameter original = component.SelectParameters[i];
                    Parameter clone    = (Parameter)((ICloneable)original).Clone();
                    this._sqlDataSourceDesigner.RegisterClone(original, clone);
                    selectParameters[i] = clone;
                }
                nextPanel.InitializeParameters(selectParameters);
            }
            nextPanel.SetQueries(this._dataConnection, selectQuery, query, updateQuery, deleteQuery);
            return(true);
        }