private void SetDatabaseAuthentication(DatabaseSettings settings)
 {
     if (settings == null)
     {
         return;
     }
     DatabaseAuthentication = DatabaseAuthenticationSource.FirstOrDefault(i => Equals(i.Value, settings.WindowsAuthentication
                                                                                                 ? Authentication.Windows
                                                                                                 : Authentication.SqlServer));
 }
 public DatabaseSettingsViewModel()
 {
     DatabaseTypeIsServer = false;
     SetDatabaseType(null);
     DatabaseAuthentication = DatabaseAuthenticationSource.FirstOrDefault();
 }