Viltskaa
d20613c3bb
# Conflicts: # SushiBar/SushiBar.sln # SushiBar/SushiBar/FormMain.Designer.cs # SushiBar/SushiBar/FormMain.cs # SushiBar/SushiBarBusinessLogic/BusinessLogics/OrderLogic.cs # SushiBar/SushiBarDatabaseImplement/Migrations/20230425050030_lab5hard.Designer.cs # SushiBar/SushiBarFileImplement/DataFileSingleton.cs # SushiBar/SushiBarRestApi/Controllers/ImplementerController.cs # SushiBar/SushiBarRestApi/Program.cs
32 lines
963 B
C#
32 lines
963 B
C#
using SushibarListImplement.Models;
|
|
|
|
namespace SushibarListImplement
|
|
{
|
|
public class DataListSingleton
|
|
{
|
|
private static DataListSingleton? _instance;
|
|
public List<Component> Components { get; set; }
|
|
public List<Order> Orders { get; set; }
|
|
public List<Sushi> Sushi { get; set; }
|
|
public List<Implementer> Implementers { get; set; }
|
|
public List<Message> Messages { get; set; }
|
|
|
|
public List<Store> Stores { get; set; }
|
|
private DataListSingleton()
|
|
{
|
|
Components = new List<Component>();
|
|
Orders = new List<Order>();
|
|
Sushi = new List<Sushi>();
|
|
Stores = new List<Store>();
|
|
Implementers = new List<Implementer>();
|
|
Messages = new List<Message>();
|
|
}
|
|
public static DataListSingleton GetInstance()
|
|
{
|
|
_instance ??= new DataListSingleton();
|
|
return _instance;
|
|
}
|
|
}
|
|
}
|
|
|