protected internal override void OnComplete()
 {
     if (this._needsToPersistConnectionInfo)
     {
         SqlDataSourceSaveConfiguredConnectionPanel.PersistConnectionSettings(this._sqlDataSource, this._sqlDataSourceDesigner, this.DataConnection);
     }
 }
        public override bool OnNext()
        {
            if (!base.CheckValidProvider())
            {
                return(false);
            }
            DesignerDataConnection dataConnection = this.DataConnection;

            if (!dataConnection.IsConfigured)
            {
                this._needsToPersistConnectionInfo = false;
                SqlDataSourceSaveConfiguredConnectionPanel nextPanel = base.NextPanel as SqlDataSourceSaveConfiguredConnectionPanel;
                if (nextPanel == null)
                {
                    nextPanel      = ((SqlDataSourceWizardForm)base.ParentWizard).GetSaveConfiguredConnectionPanel();
                    base.NextPanel = nextPanel;
                }
                if (!SqlDataSourceDesigner.ConnectionsEqual(dataConnection, nextPanel.CurrentConnection))
                {
                    nextPanel.SetConnectionInfo(dataConnection);
                }
                return(true);
            }
            this._needsToPersistConnectionInfo = true;
            return(base.OnNext());
        }
 public SqlDataSourceWizardForm(IServiceProvider serviceProvider, System.Web.UI.Design.WebControls.SqlDataSourceDesigner sqlDataSourceDesigner, IDataEnvironment dataEnvironment) : base(serviceProvider)
 {
     base.Glyph                  = new Bitmap(typeof(SqlDataSourceWizardForm), "datasourcewizard.bmp");
     this._dataEnvironment       = dataEnvironment;
     this._sqlDataSource         = (SqlDataSource)sqlDataSourceDesigner.Component;
     this._sqlDataSourceDesigner = sqlDataSourceDesigner;
     this.Text             = System.Design.SR.GetString("ConfigureDataSource_Title", new object[] { this._sqlDataSource.ID });
     this._connectionPanel = this.CreateConnectionPanel();
     base.SetPanels(new WizardPanel[] { this._connectionPanel });
     this._saveConfiguredConnectionPanel = new SqlDataSourceSaveConfiguredConnectionPanel(this._sqlDataSourceDesigner, this._dataEnvironment);
     base.RegisterPanel(this._saveConfiguredConnectionPanel);
     this._configureParametersPanel = new SqlDataSourceConfigureParametersPanel(this._sqlDataSourceDesigner);
     base.RegisterPanel(this._configureParametersPanel);
     this._configureSelectPanel = new SqlDataSourceConfigureSelectPanel(this._sqlDataSourceDesigner);
     base.RegisterPanel(this._configureSelectPanel);
     this._customCommandPanel = new SqlDataSourceCustomCommandPanel(this._sqlDataSourceDesigner);
     base.RegisterPanel(this._customCommandPanel);
     this._summaryPanel = new SqlDataSourceSummaryPanel(this._sqlDataSourceDesigner);
     base.RegisterPanel(this._summaryPanel);
     base.Size       += new Size(0, 40);
     this.MinimumSize = base.Size;
 }
 public SqlDataSourceWizardForm(IServiceProvider serviceProvider, System.Web.UI.Design.WebControls.SqlDataSourceDesigner sqlDataSourceDesigner, IDataEnvironment dataEnvironment) : base(serviceProvider)
 {
     base.Glyph = new Bitmap(typeof(SqlDataSourceWizardForm), "datasourcewizard.bmp");
     this._dataEnvironment = dataEnvironment;
     this._sqlDataSource = (SqlDataSource) sqlDataSourceDesigner.Component;
     this._sqlDataSourceDesigner = sqlDataSourceDesigner;
     this.Text = System.Design.SR.GetString("ConfigureDataSource_Title", new object[] { this._sqlDataSource.ID });
     this._connectionPanel = this.CreateConnectionPanel();
     base.SetPanels(new WizardPanel[] { this._connectionPanel });
     this._saveConfiguredConnectionPanel = new SqlDataSourceSaveConfiguredConnectionPanel(this._sqlDataSourceDesigner, this._dataEnvironment);
     base.RegisterPanel(this._saveConfiguredConnectionPanel);
     this._configureParametersPanel = new SqlDataSourceConfigureParametersPanel(this._sqlDataSourceDesigner);
     base.RegisterPanel(this._configureParametersPanel);
     this._configureSelectPanel = new SqlDataSourceConfigureSelectPanel(this._sqlDataSourceDesigner);
     base.RegisterPanel(this._configureSelectPanel);
     this._customCommandPanel = new SqlDataSourceCustomCommandPanel(this._sqlDataSourceDesigner);
     base.RegisterPanel(this._customCommandPanel);
     this._summaryPanel = new SqlDataSourceSummaryPanel(this._sqlDataSourceDesigner);
     base.RegisterPanel(this._summaryPanel);
     base.Size += new Size(0, 40);
     this.MinimumSize = base.Size;
 }