38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using FurnitureAssemblyListImplement.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FurnitureAssemblyListImplement
|
|
{
|
|
public class DataListSingleton
|
|
{
|
|
private static DataListSingleton? _instance;
|
|
public List<Workpiece> Workpieces { get; set; }
|
|
public List<Order> Orders { get; set; }
|
|
public List<Furniture> Furnitures { get; set; }
|
|
public List<Client> Clients { get; set; }
|
|
public List<Implementer> Implementers { get; set; }
|
|
|
|
private DataListSingleton()
|
|
{
|
|
Workpieces = new List<Workpiece>();
|
|
Orders = new List<Order>();
|
|
Furnitures = new List<Furniture>();
|
|
Clients = new List<Client>();
|
|
Implementers = new List<Implementer>();
|
|
}
|
|
|
|
public static DataListSingleton GetInstance()
|
|
{
|
|
if (_instance == null)
|
|
{
|
|
_instance = new DataListSingleton();
|
|
}
|
|
return _instance;
|
|
}
|
|
}
|
|
}
|