2024-02-02 11:10:52 +04:00
|
|
|
|
using EkzamenListImplement;
|
2023-02-03 23:25:31 +04:00
|
|
|
|
|
|
|
|
|
namespace ConfectioneryListImplement
|
|
|
|
|
{
|
|
|
|
|
public class DataListSingleton
|
|
|
|
|
{
|
|
|
|
|
private static DataListSingleton? _instance;
|
2024-02-02 11:10:52 +04:00
|
|
|
|
public List<Student> Students { get; set; }
|
|
|
|
|
public List<Group> Groups { get; set; }
|
2023-02-03 23:25:31 +04:00
|
|
|
|
private DataListSingleton()
|
|
|
|
|
{
|
2024-02-02 11:10:52 +04:00
|
|
|
|
Students = new List<Student>();
|
|
|
|
|
Groups = new ();
|
2023-02-03 23:25:31 +04:00
|
|
|
|
}
|
|
|
|
|
public static DataListSingleton GetInstance()
|
|
|
|
|
{
|
|
|
|
|
if (_instance == null)
|
|
|
|
|
{
|
|
|
|
|
_instance = new DataListSingleton();
|
|
|
|
|
}
|
|
|
|
|
return _instance;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|