You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
762 B
30 lines
762 B
using Microsoft.VisualBasic;
|
|
|
|
namespace Biblioteque_de_Class
|
|
{
|
|
public class PersistenceManager
|
|
{
|
|
private Database db = new();
|
|
|
|
private readonly IManager persistence;
|
|
|
|
public PersistenceManager(IManager pers)
|
|
{
|
|
persistence = pers;
|
|
}
|
|
|
|
public void SaveDatabaseData(Database database)
|
|
{
|
|
persistence.SaveDatabaseData(database.GetUserList(), database.GetAddedThemeFromUser());
|
|
}
|
|
|
|
public Database LoadDatabaseData()
|
|
{
|
|
db = persistence.LoadDatabaseData();
|
|
db.SetDefaultThemeList(persistence.LoadDefaultTheme());
|
|
db.SetDefaultLogoList(persistence.LoadDefaultLogo());
|
|
return db;
|
|
}
|
|
}
|
|
}
|