36 lines
864 B
C#
36 lines
864 B
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<Ad> Orders { get; set; }
|
|
public List<Users> Furnitures { get; set; }
|
|
|
|
public List<Komment> WorkPiece { get; set; }
|
|
|
|
|
|
public DataListSingleton()
|
|
{
|
|
WorkPiece = new List<Komment>();
|
|
Furnitures = new List<Users>();
|
|
Orders = new List<Ad>();
|
|
}
|
|
|
|
public static DataListSingleton GetInstance()
|
|
{
|
|
if(_instance == null)
|
|
{
|
|
_instance = new DataListSingleton();
|
|
}
|
|
|
|
return _instance;
|
|
}
|
|
}
|
|
} |