2023-02-03 23:25:31 +04:00
|
|
|
|
using ConfectioneryListImplement.Models;
|
|
|
|
|
|
|
|
|
|
namespace ConfectioneryListImplement
|
|
|
|
|
{
|
|
|
|
|
public class DataListSingleton
|
|
|
|
|
{
|
|
|
|
|
private static DataListSingleton? _instance;
|
|
|
|
|
public List<Component> Components { get; set; }
|
|
|
|
|
public List<Order> Orders { get; set; }
|
|
|
|
|
public List<Pastry> Pastry { get; set; }
|
2023-03-04 12:58:49 +04:00
|
|
|
|
public List<Client> Clients { get; set; }
|
2023-03-06 13:35:14 +04:00
|
|
|
|
public List<Implementer> Implementers { get; set; }
|
2023-03-13 19:08:51 +04:00
|
|
|
|
public List<MessageInfo> Messages { get; set; }
|
2023-03-04 12:58:49 +04:00
|
|
|
|
|
2023-02-05 17:05:49 +04:00
|
|
|
|
public List<Shop> Shops { get; set; }
|
2023-02-03 23:25:31 +04:00
|
|
|
|
private DataListSingleton()
|
|
|
|
|
{
|
|
|
|
|
Components = new List<Component>();
|
|
|
|
|
Orders = new List<Order>();
|
|
|
|
|
Pastry = new List<Pastry>();
|
2023-03-04 12:58:49 +04:00
|
|
|
|
Clients = new List<Client>();
|
2023-03-06 13:35:14 +04:00
|
|
|
|
Implementers = new List<Implementer>();
|
2023-03-13 19:08:51 +04:00
|
|
|
|
Messages = new List<MessageInfo>();
|
2023-02-05 17:05:49 +04:00
|
|
|
|
Shops = new List<Shop>();
|
2023-02-03 23:25:31 +04:00
|
|
|
|
}
|
|
|
|
|
public static DataListSingleton GetInstance()
|
|
|
|
|
{
|
|
|
|
|
if (_instance == null)
|
|
|
|
|
{
|
|
|
|
|
_instance = new DataListSingleton();
|
|
|
|
|
}
|
|
|
|
|
return _instance;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|