public static Labs GetLabs() { if (theLab == null) { theLab = new Labs(); } return(theLab); }
static void Main(string[] args) { Labs aLab = Labs.GetLabs();; List <String> list = aLab.GetLabsList(); list.Add("New Lab"); for (int i = 0; i < list.Count(); i++) { Console.WriteLine(list.ElementAt(i)); } Console.ReadLine(); }