public DataSettingsForm(DataSettings settings) { InitializeComponent(); if (settings != null) { settings.ExtractDatasFromConnectionString(); txtServer.Text = settings.DataSource; txtDbName.Text = settings.Catalog; txtUser.Text = settings.User; txtPwd.Text = settings.Password; } }