ISEbd-21_Agliullov.D.A._Con.../ConfectionaryListImplement/DataListSingleton.cs
Данияр Аглиуллов 310f02160b 1 раз
2024-02-02 11:10:52 +04:00

25 lines
622 B
C#

using EkzamenListImplement;
namespace ConfectioneryListImplement
{
public class DataListSingleton
{
private static DataListSingleton? _instance;
public List<Student> Students { get; set; }
public List<Group> Groups { get; set; }
private DataListSingleton()
{
Students = new List<Student>();
Groups = new ();
}
public static DataListSingleton GetInstance()
{
if (_instance == null)
{
_instance = new DataListSingleton();
}
return _instance;
}
}
}