25 lines
622 B
C#
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;
|
|
}
|
|
}
|
|
}
|