internal void OnDatabaseLogin(DataConnectionBase sender, DatabaseLoginEventArgs e) { if (DatabaseLogin != null) { DatabaseLogin(sender, e); } }
internal void OnDatabaseLogin(DataConnectionBase sender, DatabaseLoginEventArgs e) { if (Config.DesignerSettings.ApplicationConnection != null && sender.GetType() == Config.DesignerSettings.ApplicationConnectionType) { e.ConnectionString = Config.DesignerSettings.ApplicationConnection.ConnectionString; } if (DatabaseLogin != null) DatabaseLogin(sender, e); }