using AutomobilePlantListImplement.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AutomobilePlantListImplement { internal class DataListSingleton { private static DataListSingleton? _instance; public List Components { get; set; } public List Orders { get; set; } public List Cars { get; set; } public List Shops { get; set; } public List Clients { get; set; } public List Implementers { get; set; } private DataListSingleton() { Components = new List(); Orders = new List(); Cars = new List(); Shops = new List(); Clients = new List(); Implementers = new List(); } public static DataListSingleton GetInstance() { if (_instance == null) { _instance = new DataListSingleton(); } return _instance; } } }