private void SaveSettings()
{
this.Settings.Kill();
if (tabControlChooseDatabase.SelectedTab == tabPageConnection)
{
this.Settings.PrimaryServer = cboConnectionServerName.Text;
this.Settings.PrimaryUseIntegratedSecurity = optConnectionIntegratedSecurity.Checked;
this.Settings.PrimaryUserName = txtConnectionUserName.Text;
this.Settings.PrimaryPassword = txtConnectionPassword.Text;
this.Settings.PrimaryDatabase = cboConnectionDatabaseName.Text;
}
else if (tabControlChooseDatabase.SelectedTab == tabPageCreation)
{
this.Settings.PrimaryServer = cboCreationServerName.Text;
this.Settings.PrimaryDatabase = txtCreationDatabaseName.Text;
this.Settings.PrimaryUseIntegratedSecurity = optCreationIntegratedSecurity.Checked;
this.Settings.PrimaryUserName = txtCreationUserName.Text;
this.Settings.PrimaryPassword = txtCreationPassword.Text;
}
else if (tabControlChooseDatabase.SelectedTab == tabPageAzureCopy)
{
azureCopyControl1.SaveSettings(this.Settings);
}
if (chkSaveSettings.Checked)
{
this.Settings.Save();
}
}