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-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-01-29 23:17:04 +04:00
|
|
|
|
}
|
|
|
|
|
public static DataListSingleton GetInstance()
|
|
|
|
|
{
|
|
|
|
|
if (_instance == null)
|
|
|
|
|
{
|
|
|
|
|
_instance = new DataListSingleton();
|
|
|
|
|
}
|
|
|
|
|
return _instance;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|