43 lines
1.1 KiB
C#
Raw Normal View History

2024-03-30 14:30:43 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
2024-05-17 23:22:03 +04:00
using System.Windows.Forms;
2024-03-30 14:30:43 +04:00
using BarListImplement.Models;
namespace BarContracts.BindingModels
{
public class DataListSingleton
{
private static DataListSingleton? _instance;
public List<Component> Components { get; set; }
public List<Order> Orders { get; set; }
public List<Cocktail> Cocktails { get; set; }
2024-05-08 23:27:46 +04:00
public List<Client> Clients { get; set; }
2024-05-17 23:10:48 +04:00
public List<Implementer> Implementers { get; set; }
2024-05-17 23:22:03 +04:00
public List<MessageInfo> Messages { get; set; }
2024-05-17 23:10:48 +04:00
2024-05-08 23:27:46 +04:00
private DataListSingleton()
2024-03-30 14:30:43 +04:00
{
Components = new List<Component>();
Orders = new List<Order>();
Cocktails = new List<Cocktail>();
2024-05-17 23:10:48 +04:00
Clients = new List<Client>();
Implementers = new List<Implementer>();
2024-05-17 23:22:03 +04:00
Messages = new List<MessageInfo>();
2024-05-17 23:10:48 +04:00
}
public static DataListSingleton GetInstance()
2024-03-30 14:30:43 +04:00
{
if (_instance == null)
{
_instance = new DataListSingleton();
}
return _instance;
}
}
}