2023-01-29 23:17:04 +04:00
|
|
|
|
using DressAtelierListImplement.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace DressAtelierListImplement
|
|
|
|
|
{
|
|
|
|
|
public class DataListSingleton
|
|
|
|
|
{
|
|
|
|
|
private static DataListSingleton? _instance;
|
|
|
|
|
public List<Material> Components { get; set; }
|
|
|
|
|
public List<Order> Orders { get; set; }
|
2023-02-13 10:07:35 +04:00
|
|
|
|
public List<Dress> Dresses { get; set; }
|
2023-04-05 17:59:38 +04:00
|
|
|
|
public List<Client> Clients { get; set; }
|
2023-04-18 19:49:02 +04:00
|
|
|
|
public List<Employee> Employees { get; set; }
|
2023-01-29 23:17:04 +04:00
|
|
|
|
private DataListSingleton()
|
|
|
|
|
{
|
|
|
|
|
Components = new List<Material>();
|
|
|
|
|
Orders = new List<Order>();
|
2023-02-13 10:07:35 +04:00
|
|
|
|
Dresses = new List<Dress>();
|
2023-04-05 17:59:38 +04:00
|
|
|
|
Clients = new List<Client>();
|
2023-04-18 19:49:02 +04:00
|
|
|
|
Employees = new List<Employee>();
|
2023-01-29 23:17:04 +04:00
|
|
|
|
}
|
|
|
|
|
public static DataListSingleton GetInstance()
|
|
|
|
|
{
|
|
|
|
|
if (_instance == null)
|
|
|
|
|
{
|
|
|
|
|
_instance = new DataListSingleton();
|
|
|
|
|
}
|
|
|
|
|
return _instance;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|