using ConfectioneryListImplement.Models; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConfectioneryListImplement { public class DataListSingleton { private static DataListSingleton? _instance; public List Ingredients { get; set; } public List Orders { get; set; } public List Pastries { get; set; } public List Shops { get; set; } private DataListSingleton() { Ingredients = new List(); Orders = new List(); Pastries = new List(); Shops = new List(); } public static DataListSingleton GetInstance() { if (_instance == null) { _instance = new DataListSingleton(); } return _instance; } } }