Acme.Northwind.Install.IdentifyDatabaseForm.IdentifyDatabaseForm C# (CSharp) Метод

IdentifyDatabaseForm() публичный Метод

public IdentifyDatabaseForm ( ) : System
Результат System
		public IdentifyDatabaseForm()
		{
			InitializeComponent();

			this.Settings = new InstallSettings();

			cmdCancel.Click += new EventHandler(cmdCancel_Click);
			cmdOK.Click += new EventHandler(cmdOK_Click);

			//Turn off features for Azure
			//if (SqlServers.DatabaseVersion != SqlServers.SQLServerTypeConstants.SQLAzure)
			//  tabControlChooseDatabase.TabPages.Remove(tabPageAzureCopy);

			this.Settings.Load();
			if (this.Settings.IsLoaded)
			{
				chkSaveSettings.Checked = true;

				//Tab Upgrade
				cboConnectionServerName.Text = this.Settings.PrimaryServer;
				optConnectionIntegratedSecurity.Checked = this.Settings.PrimaryUseIntegratedSecurity;
				optConnectionUserPassword.Checked = !optConnectionIntegratedSecurity.Checked;
				txtConnectionUserName.Text = this.Settings.PrimaryUserName;
				txtConnectionPassword.Text = this.Settings.PrimaryPassword;
				cboConnectionDatabaseName.Text = this.Settings.PrimaryDatabase;

				//Tab Create
				cboCreationServerName.Text = this.Settings.PrimaryServer;
				txtCreationDatabaseName.Text = this.Settings.PrimaryDatabase;
				optCreationIntegratedSecurity.Checked = this.Settings.PrimaryUseIntegratedSecurity;
				radioButtonCreationUserPassword.Checked = !optCreationIntegratedSecurity.Checked;
				txtCreationUserName.Text = this.Settings.PrimaryUserName;
				txtCreationPassword.Text = this.Settings.PrimaryPassword;

				//Tab Azure Copy
				azureCopyControl1.LoadSettings(this.Settings);
			}
			this.UpdateLogin();

		}